:root {
    /* Page Variables */
    --bg-color: #f6f4e8;
    --card-bg: #ece6d2;
    --accent-green: #90a890;
    --text-dark: #333;
    --link-blue: #4a4acc;
    --link-red: #d35454;

    /* Navbar Variables */
    --cream: #f9f8f3;
    --cream-dark: #e8e4d8;
    --forest: #3c5028;
    --forest-deep: #253317;
    --radius-btn: 8px;
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
    --transition: 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #b0b5b0 0%, #8ca18c 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   NAVIGATION
   ========================================= */

.navbar {
    background-color: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(60, 80, 40, 0.08);
}
  
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    gap: 32px;
}
  
/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none; /* Reset */
}
  
.nav-logo img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}
  
.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    color: var(--forest);
    line-height: 1.3;
    max-width: 90px;
    font-weight: bold;
}
  
/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    list-style: none; /* Reset */
}
  
.nav-links > li {
    position: relative;
}
  
.nav-links > li > a,
.nav-links > li > button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--forest);
    background: none;
    border: none;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
    text-decoration: none; /* Reset */
    cursor: pointer;
}
  
.nav-links > li > a:hover,
.nav-links > li > button:hover {
    background-color: var(--cream-dark);
    color: var(--forest-deep);
}
  
.nav-links .chevron {
    font-size: 10px;
    opacity: 0.6;
}
  
/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-hover);
    min-width: 160px;
    padding: 6px 0;
    z-index: 200;
    list-style: none; /* Reset */
}
  
.nav-links > li:hover .dropdown { display: block; }
  
.dropdown li a {
    display: block;
    padding: 9px 16px;
    font-size: 13.5px;
    color: var(--forest);
    transition: background var(--transition);
    text-decoration: none; /* Reset */
}
  
.dropdown li a:hover { background: var(--cream-dark); }
  
/* Nav Icons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
  
.nav-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    font-size: 17px;
    transition: background var(--transition);
    position: relative;
    cursor: pointer;
    text-decoration: none;
}
  
.nav-icon-btn:hover { 
    background: var(--cream-dark); 
}

a.nav-icon-btn {
    text-decoration: none;
}
  
.cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--cream);
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}
  
.cart-badge.active { display: flex; }
  
/* Mobile hamburger shown at small screens */
.nav-hamburger { display: none; }

/* =========================================
   MAIN LAYOUT & PROFILE PAGE
   ========================================= */

.main-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    flex: 1;
}

.container {
    background-color: var(--bg-color);
    width: 1000px;
    max-width: 100%;
    display: flex;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    gap: 30px;
}

/* --- Sidebar --- */
aside {
    width: 200px;
    display: flex;
    flex-direction: column;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-left: 10px;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background-color: #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #9ca3af;
}

.user-text .username {
    font-weight: 600;
    font-size: 14px;
}

.user-text .sign-out {
    color: var(--link-red);
    font-size: 12px;
    text-decoration: none;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    padding: 10px 15px;
    margin-bottom: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border-radius: 4px;
}

.sidebar-menu li.active {
    background-color: #e5e0d8;
    font-weight: 600;
}

/* --- Profile Content --- */
main.profile-content {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 40px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
    position: relative;
}

h1 {
    text-align: center;
    font-weight: 400;
    margin-bottom: 40px;
    font-size: 32px;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-group label {
    width: 120px;
    text-align: right;
    margin-right: 20px;
    color: #666;
    font-size: 14px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
}

input[type="text"], input[type="email"] {
    width: 100%;
    max-width: 350px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f6f4e8;
    font-size: 14px;
}

.change-link {
    color: var(--link-blue);
    font-size: 14px;
    text-decoration: none;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.radio-group label {
    width: auto;
    text-align: left;
    margin-right: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Select Dropdowns */
.date-group {
    display: flex;
    gap: 10px;
}

select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f6f4e8;
    font-size: 14px;
}

/* Bottom Profile Picture Area */
.profile-picture-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding-left: 40px;
}

.profile-picture-section .avatar-placeholder {
    width: 80px;
    height: 80px;
}

.picture-info p:first-child {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.picture-info p {
    font-size: 12px;
    color: #777;
    margin-bottom: 2px;
}

.select-image-btn {
    margin-top: 10px;
    padding: 5px 15px;
    border: 1px solid #666;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* Save Button */
.save-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: #9cb89c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.save-btn:hover { background-color: #8aa68a; }

/* --- Modal Styles --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 350px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-box h3 { margin-bottom: 15px; color: #333; }
.modal-box p { margin-bottom: 25px; color: #666; font-size: 14px; }

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-confirm { background-color: #9cb89c; color: white; }
.btn-cancel { background-color: #e0e0e0; color: #333; }

/* =========================================
   AUTH PAGES (LOGIN / REGISTER)
   ========================================= */

.auth-page-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1; 
    padding: 60px 0; /* Creates the gap showing the background gradient */
}

.auth-container {
    background-color: var(--cream);
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.auth-container h1 {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.auth-subtitle {
    font-size: 15px;
    color: #444;
    margin-bottom: 35px;
    line-height: 1.5;
}

.auth-form {
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    width: 100%;
}

.form-row.split {
    display: flex;
    gap: 15px;
}

.auth-form input {
    width: 100%;
    max-width: 100%;
    padding: 14px 15px;
    border: 1px solid #bba;
    border-radius: 4px;
    background-color: #f6f4e8;
    font-size: 13px;
    color: #333;
}

.auth-form input::placeholder {
    color: #888;
}

.auth-submit-btn {
    background-color: #42522c; /* Matches the dark green in your image */
    color: white;
    border: none;
    border-radius: 20px; /* Pill shape */
    padding: 14px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color var(--transition);
}

.auth-submit-btn:hover {
    background-color: var(--forest-deep);
}

.auth-footer-text {
    margin-top: 15px;
    font-size: 13px;
    color: #333;
}

.auth-footer-text a {
    color: #333;
    text-decoration: underline;
    font-weight: 600;
}