/* ==========================================================================
   PREMIUM CUSTOM DESIGN SYSTEM - BIRTHDAY & MARRIAGE ANNIVERSARY MANAGER
   Vanilla CSS Architecture (Tailwind-Free, Lightweight, Modern Glassmorphism)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #f4f6f9;               /* Clean Light Grey Background */
    --bg-card: #ffffff;               /* Solid White Card Background */
    --bg-card-hover: #ffffff;         /* Hover card */
    --border-glow: #dee2e6;           /* Soft grey borders */
    --border-glow-focus: rgba(79, 70, 229, 0.4); /* Indigo accent glow */
    
    --text-primary: #2b303a;          /* Dark Slate Grey */
    --text-secondary: #495057;        /* Medium Slate Grey */
    --text-muted: #6c757d;            /* Soft Muted Grey */
    
    /* Theme Accents */
    --accent-teal: #0284c7;           /* Sky Blue / Teal */
    --accent-teal-gradient: linear-gradient(135deg, #0284c7, #0d9488);
    
    --accent-gold: #d97706;           /* Amber / Gold */
    --accent-gold-gradient: linear-gradient(135deg, #d97706, #db2777);
    
    --accent-admin: #4f46e5;          /* Indigo */
    --accent-admin-gradient: linear-gradient(135deg, #4f46e5, #7c3aed);
    
    --accent-danger: #dc2626;         /* Crimson Red */
    --accent-success: #16a34a;        /* Forest Green */
    
    /* Font Declarations */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Grid & Layout */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-main: 0 4px 20px rgba(0, 0, 0, 0.05); /* Premium soft light shadow */
    --shadow-glow: 0 0 15px rgba(79, 70, 229, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   1. Base & Reset
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 60px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button, input, select, textarea {
    font-family: inherit;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.text-gradient-teal {
    background: var(--accent-teal-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-admin {
    background: var(--accent-admin-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   3. Shell & Navigation
   ========================================================================== */
.navbar {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border-glow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.navbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.logo-icon {
    font-size: 1.5rem;
}

.navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.navbar-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.navbar-link:hover, .navbar-link.active {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.navbar-link.active {
    border-bottom: 2px solid var(--accent-admin);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-user .btn {
    min-width: 100px;
    height: 36px;
    padding: 6px 16px;
    font-size: 0.85rem;
}

.user-badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
}

.btn-logout:hover {
    color: var(--accent-danger);
}

/* ==========================================================================
   4. Layout Containers
   ========================================================================== */
.main-content {
    max-width: var(--max-width);
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.dashboard-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.page-subtitle {
    color: var(--text-secondary);
    margin-top: 5px;
    font-size: 1rem;
}

/* ==========================================================================
   5. Custom Cards & Glassmorphism
   ========================================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-main);
    transition: var(--transition-smooth);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-glow);
    padding-bottom: 10px;
}

/* ==========================================================================
   6. Custom Forms
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--accent-admin);
    box-shadow: var(--shadow-glow);
    background: #ffffff;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-group {
        grid-column: span 1 !important;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-width: 160px; /* Force equal sizes for standard buttons */
    height: 46px;     /* Unified height */
}

/* W-full overrides for card layouts */
.btn.w-full {
    width: 100%;
    min-width: unset;
}

/* Table action buttons overrides */
.data-table .btn {
    min-width: 90px;
    height: 34px;
    padding: 6px 12px;
    font-size: 0.82rem;
}

.btn-primary {
    background: var(--accent-admin-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #f8f9fa;
}

.btn-danger {
    background: var(--accent-danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-teal {
    background: var(--accent-teal-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-gold {
    background: var(--accent-gold-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* ==========================================================================
   7. Tables & Data Grids
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glow);
    background: var(--bg-card);
    margin-bottom: 25px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-glow);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 20px;
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glow);
    font-size: 0.95rem;
    color: var(--text-primary);
}

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

.data-table tr:hover td {
    background: rgba(0, 0, 0, 0.015);
}

.lang-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 5px;
}

.lang-badge.en {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.lang-badge.ta {
    background: rgba(234, 179, 8, 0.1);
    color: #b45309;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

/* ==========================================================================
   8. Dashboards & Grids
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(0, 0, 0, 0.03);
}

.stat-icon.teal {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.stat-icon.gold {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.stat-icon.admin {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Dashboard Sections */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.today-alert {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(13, 148, 136, 0.08));
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.03);
}

.today-alert h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #16a34a;
}

.alert-item-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.today-item-badge {
    background: #ffffff;
    border: 1px solid var(--border-glow);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.today-item-badge.birthday {
    border-left: 3px solid #0ea5e9;
}

.today-item-badge.anniversary {
    border-left: 3px solid #f59e0b;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upcoming-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-glow);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.015);
}

.upcoming-item:hover {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.08);
}

.upcoming-main {
    display: flex;
    flex-direction: column;
}

.upcoming-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.upcoming-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 3px;
    display: flex;
    gap: 10px;
}

.upcoming-meta {
    text-align: right;
}

.days-badge {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.days-badge.today {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.days-badge.tomorrow {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

/* ==========================================================================
   9. Elegant Custom CSS Charts
   ========================================================================== */
.chart-container {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    width: 45px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.bar-track {
    flex-grow: 1;
    height: 12px;
    background: #e9ecef;
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 100px;
    background: var(--accent-admin-gradient);
    transition: width 1s ease-in-out;
}

.bar-fill.birthday {
    background: var(--accent-teal-gradient);
}

.bar-fill.marriage {
    background: var(--accent-gold-gradient);
}

.bar-value {
    width: 30px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================================================
   10. Alerts & Notifications
   ========================================================================== */
.alert {
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-main);
    animation: fadeIn 0.3s ease;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

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

/* ==========================================================================
   11. Auth Pages Layout
   ========================================================================== */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.auth-card {
    max-width: 450px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-admin);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   12. Pagination Custom Styling
   ========================================================================== */
.pagination-wrapper {
    margin-top: 25px;
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 5px;
    padding-left: 0;
}

.pagination .page-item .page-link {
    display: block;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--border-glow);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background: var(--accent-admin-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.15);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background: #f8f9fa;
    border-color: var(--border-glow);
    cursor: not-allowed;
}

.pagination .page-item:hover:not(.active):not(.disabled) .page-link {
    background: #f1f5f9;
    color: var(--text-primary);
}

/* Quick Utilities */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 1.5rem !important; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-10 { gap: 10px; }
.w-full { width: 100%; }

.place-detail {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-style: italic;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-left: 8px;
    border: 1px solid transparent;
}

.status-badge.death {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.05);
}

.status-badge.tc {
    background: rgba(217, 119, 6, 0.08);
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.2);
    box-shadow: 0 2px 5px rgba(217, 119, 6, 0.05);
}

.status-badge.other {
    background: rgba(109, 40, 217, 0.08);
    color: #6d28d9;
    border-color: rgba(109, 40, 217, 0.2);
    box-shadow: 0 2px 5px rgba(109, 40, 217, 0.05);
}

.status-badge.married {
    background: rgba(14, 165, 233, 0.08);
    color: #0284c7;
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: 0 2px 5px rgba(14, 165, 233, 0.05);
}

/* Inactive Status Row Highlight */
.data-table tr.status-row-inactive td {
    background-color: rgba(220, 38, 38, 0.035) !important;
    border-bottom: 1px solid rgba(220, 38, 38, 0.1) !important;
    color: #dc2626 !important;
}

.data-table tr.status-row-inactive td * {
    color: #dc2626 !important;
}

.data-table tr.status-row-inactive:hover td {
    background-color: rgba(220, 38, 38, 0.06) !important;
}

.data-table tr.status-row-inactive:last-child td {
    border-bottom: none !important;
}

.table-select {
    height: 34px;
    padding: 2px 30px 2px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.table-select:focus {
    border-color: var(--accent-admin);
    box-shadow: var(--shadow-glow);
    background-color: #ffffff;
}

/* ==========================================================================
   13. Premium Sidebar Admin Dashboard Layout (AdminLTE-Inspired)
   ========================================================================== */

/* Overall Page Wrappers */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Dashboard Navigation */
.admin-sidebar {
    width: 260px;
    background: #1e293b;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

/* Sidebar Branding Header */
.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    color: #ffffff;
}

/* Sidebar User Info */
.sidebar-user {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-admin-gradient);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.sidebar-user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #f1f5f9;
}

/* Sidebar Navigation Menu */
.sidebar-menu-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 10px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-item {
    width: 100%;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
    background: rgba(79, 70, 229, 0.18);
    border-left: 3px solid #818cf8;
    color: #ffffff;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Sidebar Footer Panel */
.sidebar-footer {
    padding: 15px;
    border-top: 1px solid var(--border-glow);
}

.btn-sidebar-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    color: white;
    border-color: rgba(239, 68, 68, 0.4);
}

/* Dashboard Content Canvas Area */
.admin-canvas {
    flex-grow: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Fix flexbox overflow issues */
    transition: var(--transition-smooth);
}

/* Topbar Header styling */
.admin-topbar {
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.topbar-toggle {
    display: none;
    font-size: 1.25rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Content Main Frame */
.admin-content-canvas {
    padding: 30px 40px 60px 40px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Breadcrumbs indicators */
.breadcrumbs {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.breadcrumbs-item:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: var(--text-muted);
}

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

.breadcrumbs-active {
    color: var(--text-primary);
    font-weight: 500;
}

/* Mobile responsive collapsing sidebar admin LTE adaptation */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-260px);
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-canvas {
        margin-left: 0;
    }
    
    .topbar-toggle {
        display: block;
    }
    
    .admin-content-canvas {
        padding: 20px 20px 60px 20px;
    }
}
