/* =============================================
   FRUVITA ADMIN — PREMIUM THEME
   Matched with Landing Page Design System
   ============================================= */

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
    /* Brand Colors — from landing page */
    --primary: #FB8007;
    --primary-light: #FB9D0B;
    --primary-dark-orange: #E64301;
    --primary-glow: rgba(251, 128, 7, 0.25);

    /* Teal Palette — from landing page */
    --teal: #173D3C;
    --teal-dark: #133332;
    --teal-light: #2a6f6c;
    --teal-lighter: #285957;
    --teal-glow: rgba(23, 61, 60, 0.2);

    /* Neutrals */
    --white: #FFFFFF;
    --bg-body: #F7F5F2;
    --bg-card: #FFFFFF;
    --bg-soft: #FFF8F0;
    --bg-input: #FAF9F7;
    --border-light: #EDE9E3;
    --border-medium: #D9D3CB;

    /* Text */
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #8C8478;
    --text-on-dark: rgba(255, 255, 255, 0.92);

    /* Layout */
    --sidebar-width: 270px;
    --topbar-height: 72px;

    /* Effects */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
    --shadow-glow-orange: 0 8px 30px rgba(251, 128, 7, 0.25);
    --shadow-glow-teal: 0 8px 30px rgba(23, 61, 60, 0.2);

    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* =============================================
   GLOBAL BODY
   ============================================= */
body.admin-body {
    background-color: var(--bg-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
body.admin-body::-webkit-scrollbar {
    width: 6px;
}
body.admin-body::-webkit-scrollbar-track {
    background: var(--bg-body);
}
body.admin-body::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 10px;
}
body.admin-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/* =============================================
   SIDEBAR
   ============================================= */
.admin-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--teal-dark) 0%, var(--teal) 40%, #1a4a48 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
    color: var(--white);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
}

/* Sidebar decorative circle */
.admin-sidebar::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(251, 128, 7, 0.06);
    top: -60px;
    right: -60px;
    pointer-events: none;
}

.admin-sidebar::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    bottom: -40px;
    left: -40px;
    pointer-events: none;
}

.sidebar-logo {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.sidebar-logo h4 {
    margin: 0;
    font-weight: 800;
    font-size: 1.55rem;
    color: var(--white);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFD9A8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-logo span {
    font-size: 0.7rem;
    color: var(--primary);
    display: block;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-menu {
    padding: 1.25rem 0;
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

/* Custom scrollbar for sidebar */
.sidebar-menu::-webkit-scrollbar {
    width: 3px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-weight: 500;
    font-size: 0.92rem;
    margin: 0.15rem 0.75rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    position: relative;
}

.sidebar-item i {
    font-size: 1.2rem;
    margin-right: 0.875rem;
    transition: var(--transition);
    width: 22px;
    text-align: center;
}

.sidebar-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border-left-color: rgba(251, 128, 7, 0.4);
    transform: translateX(3px);
}

.sidebar-item.active {
    color: var(--white);
    background: linear-gradient(90deg, rgba(251, 128, 7, 0.15) 0%, rgba(251, 128, 7, 0.04) 100%);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-item.active::before {
    content: "";
    position: absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 12px rgba(251, 128, 7, 0.5);
}

.sidebar-item.active i {
    color: var(--primary);
    filter: drop-shadow(0 0 4px rgba(251, 128, 7, 0.4));
}

.sidebar-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.btn-logout:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.btn-logout i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.btn-close-sidebar {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.btn-close-sidebar:hover {
    background: rgba(255, 255, 255, 0.15);
}


/* =============================================
   MAIN CONTENT AREA
   ============================================= */
.admin-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}


/* =============================================
   TOPBAR — GLASSMORPHISM
   ============================================= */
.admin-topbar {
    height: var(--topbar-height);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 1px solid rgba(237, 233, 227, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* Subtle gradient accent line at bottom of topbar */
.admin-topbar::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            var(--primary) 0%,
            var(--primary-light) 30%,
            transparent 100%);
    opacity: 0.4;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.btn-toggle-sidebar {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-right: 1.25rem;
    display: none;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.btn-toggle-sidebar:hover {
    color: var(--primary);
    background: var(--bg-soft);
}

.page-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: -0.3px;
}

.admin-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    border: 1px solid transparent;
}

.admin-profile:hover {
    background: var(--bg-soft);
    border-color: var(--border-light);
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark-orange) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-left: 0.75rem;
    box-shadow: 0 3px 10px rgba(251, 128, 7, 0.3);
    position: relative;
}

/* Avatar ring glow */
.avatar::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(251, 128, 7, 0.2);
    animation: pulseRing 3s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% { border-color: rgba(251, 128, 7, 0.15); transform: scale(1); }
    50% { border-color: rgba(251, 128, 7, 0.35); transform: scale(1.05); }
}

.admin-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0.5rem !important;
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-soft);
}

.dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.08);
}


/* =============================================
   CONTENT AREA
   ============================================= */
.admin-content {
    padding: 2rem;
    flex-grow: 1;
}

/* Staggered entry animation for content children */
.admin-content > .row,
.admin-content > .admin-card,
.admin-content > .mb-4,
.admin-content > div {
    animation: fadeInUp 0.5s ease-out both;
}

.admin-content > :nth-child(1) { animation-delay: 0.05s; }
.admin-content > :nth-child(2) { animation-delay: 0.12s; }
.admin-content > :nth-child(3) { animation-delay: 0.19s; }
.admin-content > :nth-child(4) { animation-delay: 0.26s; }


/* =============================================
   CARDS
   ============================================= */
.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.admin-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(251, 128, 7, 0.12);
}


/* =============================================
   WELCOME CARD (Dashboard)
   ============================================= */
.welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -100px;
    right: -60px;
    pointer-events: none;
}

.welcome-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(23, 61, 60, 0.08);
    bottom: -60px;
    left: 30px;
    pointer-events: none;
}

.welcome-card .card-body {
    position: relative;
    z-index: 2;
}

.welcome-card h4 {
    color: var(--white) !important;
    font-weight: 700;
}

.welcome-card p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.welcome-card .date-badge {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.88rem;
}

.welcome-card .date-badge i {
    color: rgba(255, 255, 255, 0.9);
}


/* =============================================
   STAT CARDS
   ============================================= */
.stat-card {
    padding: 1.75rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
    cursor: default;
}

.admin-card:has(.stat-card):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-right: 1.25rem;
    flex-shrink: 0;
    position: relative;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #4facfe 0%, #00c6fb 100%);
    box-shadow: 0 6px 18px rgba(79, 172, 254, 0.35);
}

.stat-icon.green {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 6px 18px rgba(67, 233, 123, 0.35);
}

.stat-icon.orange {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark-orange) 100%);
    box-shadow: 0 6px 18px rgba(251, 128, 7, 0.35);
}

.stat-info h5 {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 0.4rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-info h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--teal);
    letter-spacing: -0.5px;
}


/* =============================================
   TABLES
   ============================================= */
.table-responsive {
    border-radius: var(--radius-md);
}

.admin-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    background: var(--bg-body);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 1rem 1.25rem;
    border-top: none;
    border-bottom: 2px solid var(--border-light);
}

.admin-table th:first-child {
    border-top-left-radius: var(--radius-md);
}

.admin-table th:last-child {
    border-top-right-radius: var(--radius-md);
}

.admin-table td {
    padding: 0.875rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    transition: var(--transition-fast);
    font-size: 0.92rem;
}

.admin-table tbody tr {
    transition: var(--transition-fast);
}

.admin-table tbody tr:hover td {
    background-color: var(--bg-soft);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.product-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.product-thumbnail:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-md);
}

.thumbnail-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    border: 2px dashed var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
}


/* =============================================
   BADGES
   ============================================= */
.badge-status {
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-active {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.12) 0%, rgba(56, 249, 215, 0.08) 100%);
    color: #1a9c53;
    border: 1px solid rgba(67, 233, 123, 0.2);
}

.badge-active::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2fb360;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(47, 179, 96, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(47, 179, 96, 0); }
}

.badge-inactive {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.15);
}

.badge-inactive::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dc3545;
    opacity: 0.6;
}


/* =============================================
   FORMS
   ============================================= */
.form-control,
.form-select {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-light);
    background: var(--bg-input);
    transition: var(--transition);
    font-size: 0.92rem;
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(251, 128, 7, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    letter-spacing: 0.2px;
}

.input-group-text {
    background: var(--bg-body);
    border-color: var(--border-light);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}


/* =============================================
   IMAGE PREVIEW
   ============================================= */
.image-preview-container {
    width: 100%;
    max-width: 300px;
    height: 300px;
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--bg-input);
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.image-preview-container:hover {
    border-color: var(--primary);
    background: var(--bg-soft);
    transform: scale(1.01);
}

/* Animated dashed border */
.image-preview-container::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--primary), var(--teal-light), var(--primary));
    background-size: 200% 100%;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s;
}

.image-preview-container:hover::before {
    opacity: 0.08;
    animation: shimmerBorder 2s linear infinite;
}

@keyframes shimmerBorder {
    to { background-position: 200% 0; }
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    position: relative;
    z-index: 1;
    border-radius: calc(var(--radius-lg) - 2px);
}

.image-preview.active {
    display: block;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.preview-placeholder i {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    opacity: 0.5;
}

.preview-placeholder span {
    font-weight: 600;
    font-size: 0.9rem;
}

.image-preview-container.has-image .preview-placeholder {
    display: none;
}


/* =============================================
   BUTTONS
   ============================================= */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    color: var(--white);
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow-glow-teal);
    cursor: pointer;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(23, 61, 60, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark-orange) 100%);
    color: var(--white);
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow-glow-orange);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-accent::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: 0.5s;
}

.btn-accent:hover::before {
    left: 100%;
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--primary-dark-orange) 0%, #c43900 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 128, 7, 0.35);
}

/* Action Buttons */
.btn-action {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: var(--transition);
    margin: 0 0.15rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-edit {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.12);
}

.btn-edit:hover {
    background: #0d6efd;
    color: var(--white);
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.3);
}

.btn-delete {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.12);
}

.btn-delete:hover {
    background: #dc3545;
    color: var(--white);
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.back-link:hover {
    color: var(--primary);
}

.back-link:hover i {
    transform: translateX(-4px);
}

.back-link i {
    transition: var(--transition);
    font-size: 1rem;
}

/* Section Header (Card Headers) */
.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.text-accent {
    color: var(--primary) !important;
}

.text-primary-dark {
    color: var(--teal) !important;
}

/* Pagination */
.pagination {
    gap: 4px;
}

.page-link {
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: var(--radius-sm) !important;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
    transition: var(--transition-fast);
}

.page-link:hover {
    background: var(--bg-soft);
    color: var(--primary);
    border-color: var(--primary);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark-orange) 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(251, 128, 7, 0.3);
    color: var(--white);
}

.page-item.disabled .page-link {
    background: var(--bg-body);
    color: var(--text-muted);
    opacity: 0.5;
}


/* =============================================
   SEARCH BAR
   ============================================= */
.search-group {
    position: relative;
    max-width: 380px;
}

.search-group .input-group {
    border-radius: var(--radius-pill);
    overflow: hidden;
    border: 1.5px solid var(--border-light);
    background: var(--white);
    transition: var(--transition);
}

.search-group .input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(251, 128, 7, 0.08);
}

.search-group .input-group-text {
    background: transparent;
    border: none;
    padding-left: 1.25rem;
}

.search-group .form-control {
    border: none;
    background: transparent;
    padding-left: 0.5rem;
    font-size: 0.9rem;
}

.search-group .form-control:focus {
    box-shadow: none;
}

.search-group .btn {
    border: none;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    color: var(--white);
    font-weight: 600;
    padding: 0 1.25rem;
    font-size: 0.85rem;
    transition: var(--transition);
}

.search-group .btn:hover {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
}


/* =============================================
   PROFILE PAGE
   ============================================= */
.profile-card {
    overflow: hidden;
}

.profile-card .profile-header {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    padding: 1.75rem 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.profile-card .profile-header::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(251, 128, 7, 0.12);
    top: -80px;
    right: -40px;
    pointer-events: none;
}

.profile-card .profile-header h5 {
    font-weight: 700;
    margin: 0;
    font-size: 1.15rem;
}

.profile-card .profile-header p {
    opacity: 0.8;
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
}

.profile-card .profile-body {
    padding: 2rem;
}


/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

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


/* =============================================
   MOBILE SIDEBAR OVERLAY
   ============================================= */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-main {
        margin-left: 0;
    }

    .btn-toggle-sidebar {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-close-sidebar {
        display: flex;
    }

    .sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .sidebar-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    .admin-content {
        padding: 1.25rem;
    }

    .admin-topbar {
        padding: 0 1.25rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .stat-info h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .admin-content {
        padding: 1rem;
    }

    .admin-card .card-body {
        padding: 1.25rem !important;
    }

    .page-title {
        font-size: 1rem;
    }
}


/* =============================================
   LOGIN PAGE
   ============================================= */

/* Reset body styles for login page — overrides landing.css padding-top and prevents scroll */
body:has(.login-page) {
    margin: 0;
    padding: 0 !important;
    overflow: hidden;
    height: 100vh;
}

html:has(.login-page) {
    overflow: hidden;
    height: 100vh;
}

.login-page {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    background-color: var(--bg-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Left Panel — Brand */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--teal-lighter) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Decorative circles — matching landing page */
.login-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.blob-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(251, 128, 7, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.blob-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
    animation-delay: -3s;
}

/* Additional decorative elements */
.login-left::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.login-left::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(251, 128, 7, 0.06);
    bottom: -120px;
    left: -100px;
    pointer-events: none;
}

.login-brand {
    text-align: center;
    z-index: 10;
    max-width: 420px;
}

.login-brand img {
    max-width: 150px;
    margin-bottom: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-brand h1 {
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFD9A8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.login-brand p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Features list on login */
.login-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 2.5rem;
    z-index: 10;
    position: relative;
}

.login-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    font-weight: 500;
}

.login-feature-item .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(251, 128, 7, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid rgba(251, 128, 7, 0.2);
}

/* Right Panel — Login Form */
.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: var(--white);
    position: relative;
    overflow-y: auto;
}

/* Subtle pattern on right panel */
.login-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(251, 128, 7, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(23, 61, 60, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.login-box {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

/* Staggered animation for login form elements */
.login-box > * {
    animation: fadeInUp 0.6s ease-out both;
}

.login-box > :nth-child(1) { animation-delay: 0.1s; }
.login-box > :nth-child(2) { animation-delay: 0.15s; }
.login-box > :nth-child(3) { animation-delay: 0.2s; }
.login-box > :nth-child(4) { animation-delay: 0.25s; }
.login-box > form { animation-delay: 0.3s; }

.login-header-mobile {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
}

.login-header-mobile h2 {
    color: var(--teal);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.login-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Login Inputs */
.login-input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.login-input-group i.icon-prefix {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.15rem;
    z-index: 10;
    transition: var(--transition);
}

.login-input-group .form-control {
    padding-left: 3rem;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    border: 1.5px solid var(--border-light);
    font-size: 0.92rem;
    transition: var(--transition);
}

.login-input-group .form-control:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(251, 128, 7, 0.1);
}

.login-input-group .form-control:focus ~ i.icon-prefix,
.login-input-group .form-control:not(:placeholder-shown) ~ i.icon-prefix {
    color: var(--primary);
}

.btn-toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    padding: 4px;
    transition: var(--transition);
}

.btn-toggle-password:hover {
    color: var(--teal);
}

/* Login Button */
.login-btn {
    height: 52px;
    font-size: 1rem;
    border-radius: var(--radius-md);
    margin-top: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

/* Check styles */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(251, 128, 7, 0.15);
    border-color: var(--primary);
}

/* Login Mobile */
@media (max-width: 767.98px) {
    .login-left {
        display: none;
    }

    .login-right {
        padding: 1.5rem;
    }

    .login-header-mobile {
        display: block;
    }

    .login-box {
        padding: 2rem;
        background: var(--white);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-light);
    }

    .login-title {
        font-size: 1.5rem;
    }
}


/* =============================================
   ALERT OVERRIDES
   ============================================= */
.alert {
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.06) 100%);
    color: #1a9c53;
    border: 1px solid rgba(67, 233, 123, 0.2);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.06);
    color: #b02a37;
    border: 1px solid rgba(220, 53, 69, 0.15);
}


/* =============================================
   HR / DIVIDERS
   ============================================= */
hr {
    border-color: var(--border-light);
    opacity: 0.6;
}


/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: var(--text-secondary);
    font-weight: 600;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* =============================================
   UTILITIES
   ============================================= */
.text-accent {
    color: var(--primary) !important;
}

.text-primary-dark {
    color: var(--teal) !important;
}

.bg-accent {
    background-color: var(--primary) !important;
}

.border-accent {
    border-color: var(--primary) !important;
}


/* =============================================
   SWEETALERT2 OVERRIDES (if applicable)
   ============================================= */
.swal2-popup {
    border-radius: var(--radius-xl) !important;
    font-family: 'Inter', sans-serif !important;
}

.swal2-styled.swal2-confirm {
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.5rem !important;
}

.swal2-styled.swal2-cancel {
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.5rem !important;
}
