
:root {
    --olive: #93A24E;
    --olive-dark: #6f7d35;
    --olive-soft: #eef3df;
    --olive-light: #c7d39a;
    --sidebar-bg: #5f6c2f;
    --sidebar-bg-2: #526026;
    --content-bg: #f7f8f3;
    --card-bg: #ffffff;
    --text-main: #273018;
    --text-soft: #6a7351;
    --border-color: #d9e1bf;
    --header-height: 64px;
    --sidebar-width: 220px;
    --sidebar-collapsed: 76px;
}

body {
    margin: 0;
    background: var(--content-bg);
    color: var(--text-main);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
    color: var(--olive);
}
a:hover {
    color: var(--olive-dark);
}
.app-shell {
    min-height: 100vh;
}
.text-olive {
    color: var(--olive);
}

    .topbar {
        height: var(--header-height);
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 18px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    }

    .topbar-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .toggle-btn {
        border: none;
        background: transparent;
        font-size: 1.3rem;
        color: var(--olive-dark);
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

        .toggle-btn:hover {
            background: var(--olive-soft);
        }

    .topbar-title {
        font-weight: 700;
        color: var(--olive-dark);
        margin: 0;
        font-size: 1.1rem;
    }

    .topbar-user {
        color: var(--text-soft);
        font-weight: 600;
    }

    .layout {
        display: flex;
        padding-top: var(--header-height);
        min-height: 100vh;
    }

    .sidebar {
        width: var(--sidebar-width);
        background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
        color: #fff;
        transition: width 0.25s ease;
        overflow: hidden;
        position: fixed;
        top: var(--header-height);
        bottom: 0;
        left: 0;
        z-index: 1020;
        box-shadow: 3px 0 14px rgba(0,0,0,0.06);
    }

        .sidebar.collapsed {
            width: var(--sidebar-collapsed);
        }

    .brand {
        padding: 18px 14px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .brand-logo {
        min-width: 46px;
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: rgba(255,255,255,0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
    }

    .brand-text {
        transition: opacity 0.2s ease;
    }

    .sidebar.collapsed .brand-text,
    .sidebar.collapsed .menu-text,
    .sidebar.collapsed .menu-title {
        display: none;
    }

    .brand-name {
        font-weight: 700;
        font-size: 1rem;
        line-height: 1.1;
    }

    .brand-subtitle {
        font-size: 0.8rem;
        color: rgba(255,255,255,0.7);
    }

    .menu-wrapper {
        padding: 12px 10px;
    }

    .menu-title {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: rgba(255,255,255,0.65);
        margin: 10px 10px 8px;
        letter-spacing: .08em;
    }

    .menu-link {
        display: flex;
        align-items: center;
        gap: 12px;
        color: rgba(255,255,255,0.92);
        text-decoration: none;
        padding: 11px 12px;
        border-radius: 12px;
        margin-bottom: 6px;
        transition: 0.2s ease;
        white-space: nowrap;
    }

        .menu-link:hover,
        .menu-link.active {
            background: rgba(255,255,255,0.14);
            color: #fff;
        }

    .menu-icon {
        font-size: 1.1rem;
        min-width: 24px;
        text-align: center;
    }

    .main-content {
        flex: 1;
        margin-left: var(--sidebar-width);
        transition: margin-left 0.25s ease;
        padding: 24px;
    }

        .main-content.expanded {
            margin-left: var(--sidebar-collapsed);
        }

    .page-header {
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--olive-dark);
        margin-bottom: 4px;
    }

    .page-subtitle {
        color: var(--text-soft);
        margin: 0;
    }

    .content-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 18px;
        box-shadow: 0 8px 24px rgba(74, 85, 28, 0.06);
        overflow: hidden;
    }

    .content-card-header {
        background: linear-gradient(180deg, #f8faf2, #edf3df);
        border-bottom: 1px solid var(--border-color);
        padding: 18px 22px;
    }

        .content-card-header h2 {
            margin: 0;
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--olive-dark);
        }

    .content-card-body {
        padding: 24px;
    }

    .form-label {
        font-weight: 600;
        color: var(--text-main);
        margin-bottom: 0;
    }

    .form-control,
    .form-select {
        border-radius: 10px;
        border: 1px solid #ccd6ac;
        min-height: 42px;
    }

        .form-control:focus,
        .form-select:focus {
            border-color: var(--olive);
            box-shadow: 0 0 0 0.25rem rgba(147, 162, 78, 0.2);
        }

    .form-check-input:checked {
        background-color: var(--olive);
        border-color: var(--olive);
    }

    .form-section-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--olive-dark);
        margin-bottom: 18px;
        padding-bottom: 8px;
        border-bottom: 1px dashed var(--border-color);
    }

    .upload-panel {
        border: 2px dashed var(--olive-light);
        background: #fafcf5;
        border-radius: 14px;
        padding: 18px;
    }

        .upload-panel .upload-icon {
            font-size: 1.8rem;
            color: var(--olive-dark);
        }
.dropdown i:hover {
    color: var(--olive-dark);
}
a.text-olive:hover {
    color: var(--olive-dark);
}
.btn-olive, .btn-primary {
    background: var(--olive);
    border-color: var(--olive);
    color: #fff;
}

    .btn-olive:hover, .btn-primary:hover {
        background: var(--olive-dark);
        border-color: var(--olive-dark);
        color: #fff;
    }
    .btn-olive:disabled, .btn-primary:disabled {
        background: var(--olive-soft);
        border-color: var(--olive-soft);
    }
.btn-outline-olive, .btn-outline-primary {
    border: 1px solid var(--olive);
    color: var(--olive-dark);
    background: #fff;
}

    .btn-outline-olive:hover, .btn-outline-primary:hover {
        background: var(--olive-soft);
        color: var(--olive-dark);
    }

.btn-float {
    position: fixed;
    top: 70px;
    right: 30px;
    background-color: var(--olive-dark);
    color: #fff;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

    .btn-float:hover {
        background-color: var(--olive);
    }


    .info-box {
        background: var(--olive-soft);
        border: 1px solid var(--border-color);
        color: #596533;
        border-radius: 12px;
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .login-wrapper {
        min-height: calc(100vh - var(--header-height) - 48px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-card {
        width: 100%;
        max-width: 440px;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 20px;
        box-shadow: 0 12px 30px rgba(74, 85, 28, 0.08);
        overflow: hidden;
    }

    .login-card-header {
        background: linear-gradient(180deg, #f8faf2, #edf3df);
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }

    .login-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto 12px;
        border-radius: 16px;
        background: var(--olive-soft);
        color: var(--olive-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.7rem;
    }

    .login-card-header h2 {
        margin: 0;
        font-size: 1.35rem;
        color: var(--olive-dark);
        font-weight: 700;
    }

    .login-card-header p {
        margin: 8px 0 0;
        color: var(--text-soft);
    }

    .login-card-body {
        padding: 24px;
    }

    .sidebar.not-authenticated .menu-wrapper {
        display: none;
    }

    .topbar.not-authenticated .toggle-btn {
        display: none;
    }

    .topbar.not-authenticated .topbar-user {
        display: none;
    }

    .hidden {
        display: none !important;
    }
.dropdown-item.active, .dropdown-item:active {
    background-color: var(--olive);
}
@media (max-width: 991px) {
    .sidebar {
        width: var(--sidebar-collapsed);
    }

        .sidebar .brand-text,
        .sidebar .menu-text,
        .sidebar .menu-title {
            display: none;
        }

    .main-content {
        margin-left: var(--sidebar-collapsed);
    }

    .sidebar.not-authenticated {
        width: var(--sidebar-width);
    }

        .sidebar.not-authenticated .brand-text {
            display: block;
        }
}

    @media (max-width: 768px) {
        .main-content {
            padding: 16px;
        }

        .login-wrapper {
            min-height: auto;
            padding-top: 24px;
        }
    }
