/*main_style.css*/
:root {
    --color-primary: #2d5a27;
    --color-primary-hover: #1e3d1a;
    --color-secondary: #539462;
    --color-secondary-hover: #43784f;
    --color-accent: #c5a059;
    --color-accent-hover: #b8923d;
    --color-bg: #f4f7f4;
    --color-surface: #ffffff;
    --color-text: #1a2e1a;
    --color-text-muted: #6b7c6a;
    --color-text-body: #444;
    --color-border: #e0e6e0;
    --color-border-light: #edf1ed;
    --color-success: #2a7a22;
    --color-success-bg: #e6f4e5;
    --color-danger: #c0392b;
    --color-danger-hover: #962d22;
    --color-danger-bg: #fdecea;
    --color-warning: #b07d00;
    --color-warning-bg: #fff8e1;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 20px;

    --primary-green: var(--color-primary);
    --primary-hover: var(--color-primary-hover);
    --primary-mid: var(--color-secondary);
    --primary-light: var(--color-border-light);
    --gold: var(--color-accent);
    --bg: var(--color-bg);
    --text-muted: var(--color-text-muted);
}

/* Breakpoints: 1100px (tablet/small laptop), 768px (tablet portrait), 480px (phone) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 70px;
    background-color: var(--color-secondary);
    color: var(--color-surface);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-surface);
    text-decoration: none;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
    outline: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-surface);
}

/* --- USER SECTION & SETTINGS --- */
.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.login-nav-btn {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--color-surface) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-nav-btn:hover {
    background-color: var(--color-surface);
    color: var(--color-secondary) !important;
}

.settings-icon {
    text-decoration: none;
    color: var(--color-surface);
    font-size: 1.1rem;
    transition: transform 0.5s ease;
}

.settings-icon:hover {
    transform: rotate(90deg);
}

.settings-container {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--color-surface);
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.dropdown-content.show {
    display: block;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    font-size: 14px;
    color: #333;
}

.dropdown-header {
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    color: #555;
}

.setting-item button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    display: block;
}

.setting-item button:hover {
    background-color: #f5f5f5;
    color: var(--color-secondary);
}

.setting-item a.logout-btn {
    text-decoration: none;
    width: 100%;
    display: block;
    padding: 10px 12px;
    color: #d9534f;
    font-size: 0.9rem;
}

.username {
    color: var(--color-surface);
    font-weight: 500;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--color-secondary);
        flex-direction: column;
        padding: 15px;
        gap: 5px;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
        z-index: 1001;
    }

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

    .nav-links a {
        color: rgba(255, 255, 255, 0.92);
        padding: 10px 12px;
        border-radius: 6px;
        width: 100%;
        font-size: 0.95rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

    .user-section {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    .logo a {
        font-size: 1.2rem;
    }

    .navbar {
        padding: 0 15px;
    }

    .username {
        display: none;
    }

    .header-right {
        gap: 10px;
    }
}

.container {
    flex: 1;
    width: 100%;
    min-height: 100vh;
}

.footer {
    background-color: #1a2a1e;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.85rem;
    color: #a4c7ae;
    line-height: 1.8;
    width: 100%;
}

.footer-contact a {
    color: #a4c7ae;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--color-surface);
    text-decoration: underline;
}

.footer-contact-divider {
    margin: 0 6px;
    color: #6f8a76;
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.footer-socials a {
    color: #a4c7ae;
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    color: var(--color-surface);
    transform: translateY(-2px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-family);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: 0 2px 8px rgba(45,90,39,.20); }
.btn--primary:hover { background: var(--color-primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(45,90,39,.25); }
.btn--ghost, .btn--outline { background: var(--color-surface); color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn--ghost:hover, .btn--outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: var(--color-accent-hover); color: #fff; transform: translateY(-1px); }
.btn--danger { background: var(--color-danger-bg); color: var(--color-danger); }
.btn--danger:hover { background: var(--color-danger); color: #fff; }
.btn--full { width: 100%; justify-content: center; }

.page-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); box-sizing: border-box; }
.page-card--stacked { display: flex; flex-direction: column; gap: 20px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.badge--accent { background: var(--color-bg); color: var(--color-primary); }
.badge--success { background: var(--color-success-bg); color: var(--color-success); }
.badge--danger { background: var(--color-danger-bg); color: var(--color-danger); }
.badge--warning { background: var(--color-warning-bg); color: var(--color-warning); }

.card-hover-lift:hover { box-shadow: 0 12px 24px rgba(0,0,0,.10); border-color: var(--color-primary); transform: translateY(-3px); }

/* --- ANIMATIONS / SKELETON --- */
.skel-block {
    background: #e0e0e0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skel-title { height: 45px; width: 50%; margin: 0 auto 20px; }
.skel-text { height: 20px; width: 70%; margin: 0 auto 40px; }
.skel-grid { display: flex; gap: 20px; justify-content: center; margin-top: 20px; }

.back-link-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-top: 5px; 
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    padding: 3px 0;
    margin-bottom: 8px;
    transition: transform 0.2s;
}

.back-link:hover {
    transform: translateX(-4px);
    text-decoration: underline;
}

.back-link i {
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .back-link-wrapper {
        padding-top: 0;
    }

    .back-link {
        font-size: 0.82rem;
        gap: 6px;
        margin-bottom: 4px;
    }
}