/* ---------- Navigation Bar ---------- */

.navbar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;

}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

/* Menu */
.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
}

/* ---------- Buttons (Links) ---------- */
.nav-menu li a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #000;
    padding: 8px 14px;
    background: #ffffff;     /* white button */
    border-radius: 8px;       /* modern rounded */
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* Hover Effect */
.nav-menu li a:hover {
    background: #f2f2f2;      /* light grey hover */
    border-color: #dcdcdc;
    color: #000;
}

/* ---------- Mobile Button ---------- */
.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px;
    background: #000;
    transition: 0.3s;
}

/* ---------- Responsive (Mobile) ---------- */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        right: 0;
        top: 70px;
        background: white;
        width: 100%;
        flex-direction: column;
        padding: 20px 0;
        align-items: center;
        display: none;
        gap: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu li a {
        width: 90%;
        text-align: center;
    }
}


/* ========= USER DROPDOWN ========= */

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f7f7f7;
    border-radius: 20px;
    border: 1px solid #e3e3e3;
    cursor: pointer;
    position: relative;
}

.user-dropdown:hover {
    background: #efefef;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 15px;
    font-weight: 500;
}

.arrow {
    font-size: 12px;
    opacity: 0.7;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    min-width: 150px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

/* Show menu */
.user-dropdown.active .dropdown-menu {
    display: flex;
}

/* Hide on mobile if needed */
@media (max-width: 768px) {
    .user-dropdown {
        display: none; /* optional */
    }
}


/* --- LOGO CONTAINER --- */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between icon and text */
    cursor: pointer;
    transition: opacity 0.2s;
}

.nav-logo:hover {
    opacity: 0.9;
}

/* --- THE LEAF ICON BOX --- */
.logo-icon {
    width: 42px;
    height: 42px;
    background: #d1fae5;  /* Soft Green Background */
    color: #059669;       /* Deep Green Icon */
    border-radius: 12px;  /* Modern Soft Edges */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2); /* Subtle Green Glow */
}

/* --- TEXT TYPOGRAPHY --- */
.brand {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;      /* Extra Bold */
    color: #1e293b;        /* Dark Slate (Professional Black) */
    margin: 0;
    letter-spacing: -0.03em; /* Tight modern spacing */
    line-height: 1;
}

/* --- THE 'FARM' ACCENT --- */
.brand span {
    color: #10b981;        /* The Primary Emerald Green */
    position: relative;
}

