:root {
    --agro-green: #15803d;
    --agro-dark: #0f391c;
    --agro-accent: #facc15;
    --bg-light: #f3f4f6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: #374151;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAVIGATION (HEADER) --- */
.navbar {
    background: linear-gradient(135deg, var(--agro-dark) 0%, var(--agro-green) 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    color: white !important;
}

/* PATAISYMAS: Pridėta .navbar klasė, kad veiktų tik viršuje */
.navbar .nav-link {
    font-weight: 500;
    transition: opacity 0.2s;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar .nav-link:hover {
    opacity: 0.9;
    color: var(--agro-accent) !important;
}

/* --- BUTTONS --- */
.btn-agro {
    background-color: var(--agro-accent);
    color: #111;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.1s;
}

.btn-agro:hover {
    background-color: #eab308;
    transform: translateY(-1px);
}

/* --- MOBILE NAV --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.15);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 10px;
    }
    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 5px 0;
    }
    .nav-item:last-child {
        border-bottom: none;
    }
    .btn-agro {
        width: 100%;
        margin-top: 10px;
    }
}

/* --- CARDS & GENERIC --- */
.card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    background: white;
    transition: all 0.2s ease;
}

/* --- FOOTER --- */
.footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 4rem 0;
    margin-top: auto;
}

.footer a {
    color: #d1d5db;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.95rem;
}

.footer a:hover {
    color: var(--agro-accent);
}

/* --- UI ELEMENTS --- */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #111827;
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    border-top: 4px solid var(--agro-green);
}

#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
    background-color: var(--agro-green);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

#btn-back-to-top:hover {
    background-color: var(--agro-dark);
    transform: translateY(-3px);
}

/* --- CONTACT PAGE FIX --- */
.contact-left-box {
    background-color: var(--agro-green) !important;
    background: linear-gradient(135deg, var(--agro-dark) 0%, var(--agro-green) 100%) !important;
    color: white !important;
}

.contact-left-box * {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.contact-left-box i {
    color: var(--agro-accent) !important;
}

/* --- BOTTOM NAVIGATION (MOBILE APP STYLE) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1040; /* Aukščiau už daugumą elementų */
    height: 65px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #9ca3af; /* Pilka */
    font-size: 0.65rem;
    font-weight: 600;
    width: 20%;
    transition: all 0.2s;
}

.bottom-nav .nav-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
    transition: transform 0.2s;
}

.bottom-nav .nav-item.active {
    color: var(--agro-green);
}

.bottom-nav .nav-item.active i {
    transform: translateY(-2px);
}

/* Centrinis "Įdėti" mygtukas */
.bottom-nav .center-item {
    position: relative;
    top: -22px; /* Pakeliame į viršų */
    overflow: visible;
}

.bottom-nav .center-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--agro-dark) 0%, var(--agro-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 15px rgba(21, 128, 61, 0.35);
    border: 4px solid var(--bg-light); /* Sukuria "iškirpimo" efektą */
    transition: transform 0.2s;
}

.bottom-nav .center-item:active .center-icon {
    transform: scale(0.95);
}

.bottom-nav .center-icon i {
    font-size: 1.4rem;
    margin-bottom: 0;
}

.bottom-nav .nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 4px;
    border: 2px solid var(--agro-green);
}

/* PAKEITIMAI KITIEMS ELEMENTAMS MOBILIOJE VERSIJOJE */
@media (max-width: 991px) {
    body {
        padding-bottom: 80px; /* Kad turinys nepasislėptų po meniu */
    }
    
    /* Pakeliame "Į viršų" mygtuką virš navigacijos */
    #btn-back-to-top {
        bottom: 80px; 
    }
    
    /* Pakeliame slapukų juostą virš navigacijos */
    #cookieBanner {
        bottom: 65px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .footer {
        padding-bottom: 6rem; /* Daugiau vietos apačioje */
    }
}