/* 
   SMIS - Student Inspector Information System Design System
   Theme: Glassmorphism Dark Neon
*/

:root {
    color-scheme: dark;
    --bg-main: #0a0915;
    --bg-gradient: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0a0915 100%);
    --panel-bg: rgba(18, 17, 35, 0.6);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.07);
    --card-glow: rgba(99, 102, 241, 0.05);
    
    /* Neon Accents */
    --accent-primary: #6366f1; /* Indigo */
    --accent-primary-glow: rgba(99, 102, 241, 0.4);
    --accent-emerald: #10b981; /* Emerald */
    --accent-emerald-glow: rgba(16, 185, 129, 0.4);
    --accent-amber: #f59e0b; /* Amber */
    --accent-amber-glow: rgba(245, 158, 11, 0.4);
    --accent-rose: #f43f5e; /* Rose */
    --accent-rose-glow: rgba(244, 63, 94, 0.4);
    --accent-indigo: #818cf8;
    
    /* Text colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 12px;
}

/* Light Theme Variables */
.light-theme {
    color-scheme: light;
    --bg-main: #f1f5f9;
    --bg-gradient: radial-gradient(circle at 50% 0%, #e2e8f0 0%, #f1f5f9 100%);
    --panel-bg: rgba(255, 255, 255, 0.85);
    --card-bg: rgba(0, 0, 0, 0.02);
    --card-border: rgba(0, 0, 0, 0.06);
    --card-glow: rgba(99, 102, 241, 0.02);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    /* High-contrast colors for Light Theme */
    --accent-primary: #4338ca;
    --accent-primary-glow: rgba(67, 56, 202, 0.15);
    --accent-emerald: #047857;
    --accent-emerald-glow: rgba(4, 120, 87, 0.15);
    --accent-amber: #b45309;
    --accent-amber-glow: rgba(180, 83, 9, 0.15);
    --accent-rose: #be123c;
    --accent-rose-glow: rgba(190, 18, 60, 0.15);
    --accent-indigo: #4f46e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Kanit', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #05050b;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Smartphone Mock Shell */
.mobile-frame {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: var(--bg-gradient);
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

@media (min-width: 481px) {
    .mobile-frame {
        height: 850px;
        border-radius: 40px;
        border: 8px solid #1e1e2f;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255,255,255,0.05);
    }
}

/* Status Bar decoration */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
    z-index: 10;
}

.status-time {
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.status-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.5px;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(10, 9, 21, 0.2);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--card-border);
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.logo-icon {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%);
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
    color: #fff;
    flex-shrink: 0;
}

.logo-icon i {
    width: 18px;
    height: 18px;
}

.app-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.app-subtitle {
    font-size: 0.68rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.theme-toggle {
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.08);
}

.logout-btn {
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.logout-btn:hover {
    color: var(--accent-rose);
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.3);
}

.theme-toggle .sun-icon {
    display: none;
}

.light-theme .theme-toggle .sun-icon {
    display: block;
}
.light-theme .theme-toggle .moon-icon {
    display: none;
}

.admin-badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent-indigo);
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Main Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 90px; /* Space for bottom navigation */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Custom Scrollbar for Webkit */
.content-area::-webkit-scrollbar {
    width: 4px;
}
.content-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, var(--card-glow) 0%, transparent 70%);
    pointer-events: none;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

/* Tab Management */
.tab-panel {
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: flex;
}

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

/* Welcome Banner */
.welcome-banner {
    padding: 12px 4px;
}

.welcome-banner h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

.welcome-banner p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.3);
}

.gradient-purple {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

.gradient-emerald {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.stat-icon {
    background: rgba(255, 255, 255, 0.15);
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-icon i {
    width: 20px;
    height: 20px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

/* Today Summary Attendance Circle */
.today-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.today-date-str {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: -8px;
    margin-bottom: 18px;
}

.attendance-ring-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.6s ease;
}

.ring-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ring-percent {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.ring-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.attendance-counters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    width: 100%;
    margin-top: 8px;
    border-top: 1px solid var(--card-border);
    padding-top: 16px;
}

.counter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.counter-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.bg-emerald { background-color: var(--accent-emerald); }
.bg-amber { background-color: var(--accent-amber); }
.bg-rose { background-color: var(--accent-rose); }
.bg-indigo { background-color: var(--accent-indigo); }

.bg-emerald-light { background-color: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.bg-purple-light { background-color: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.bg-indigo-light { background-color: rgba(99, 102, 241, 0.15); color: var(--accent-primary); }

/* Quick Actions */
.quick-actions-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
}

.action-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-btn-icon i {
    width: 20px;
    height: 20px;
}

.action-btn span {
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
}

/* Tab Headers & Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 4px 8px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Search Box & Filters */
.search-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 12px 16px 12px 42px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-select {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-select:focus {
    border-color: var(--accent-primary);
}

/* Inspectors list & cards */
.inspectors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inspector-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.inspector-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(4px);
    border-color: rgba(99, 102, 241, 0.25);
}

.inspector-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
}

.avatar-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.inspector-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.inspector-id-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.inspector-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.badge-position {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
}

.badge-position.chief {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: var(--accent-amber);
}

.badge-position.deputy {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.25);
    color: #a78bfa;
}

.card-chevron {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.inspector-card:hover .card-chevron {
    color: var(--text-primary);
    transform: translateX(2px);
}

/* Date Selector Box */
.date-selector-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
}

.date-picker-wrapper {
    position: relative;
    width: 100%;
}

.calendar-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
}

.date-input {
    padding-left: 42px !important;
    font-family: 'Outfit', 'Kanit', sans-serif !important;
}

/* Attendance checklist styles */
.attendance-summary-banner {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
}

.attendance-summary-banner.saved {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.checklist-sub {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted);
}

.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checklist-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checklist-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checklist-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-indigo);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checklist-details {
    display: flex;
    flex-direction: column;
}

.checklist-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.checklist-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Status selection buttons row */
.status-buttons-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: rgba(0, 0, 0, 0.15);
    padding: 4px;
    border-radius: 10px;
}

.status-btn {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 6px 4px;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* State selections */
.status-btn.present.active {
    background: var(--accent-emerald);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-emerald-glow);
}
.status-btn.late.active {
    background: var(--accent-amber);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-amber-glow);
}
.status-btn.leave.active {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-primary-glow);
}
.status-btn.absent.active {
    background: var(--accent-rose);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-rose-glow);
}

/* Sticky save block */
.action-bar {
    margin-top: 8px;
}

/* Report / Stats layout */
.stats-report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-summary-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.box-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.box-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.text-emerald { color: var(--accent-emerald); }
.text-rose { color: var(--accent-rose); }

/* History List style */
.history-card {
    padding: 18px 16px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.history-date {
    display: flex;
    flex-direction: column;
}

.history-date-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.history-date-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.history-badges {
    display: flex;
    gap: 4px;
}

.history-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
}

.badge-present { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.badge-late { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.badge-leave { background: rgba(99, 102, 241, 0.15); color: var(--accent-primary); }
.badge-absent { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(16, 185, 129, 0.35);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 8px;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(10, 9, 21, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 16px;
    z-index: 10;
}

@media (min-width: 481px) {
    .bottom-nav {
        border-bottom-left-radius: 32px;
        border-bottom-right-radius: 32px;
    }
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 8px 12px;
    border-radius: 12px;
}

.nav-item i {
    width: 22px;
    height: 22px;
    stroke-width: 2px;
    transition: var(--transition-smooth);
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--accent-indigo);
}

.nav-item.active i {
    color: var(--accent-indigo);
    transform: translateY(-2px);
    filter: drop-shadow(0 2px 8px var(--accent-primary-glow));
}

/* Modals Backdrops */
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 11, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Mobile drawer feel */
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: #0f0e21;
    border-top: none;
    padding: 24px;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.light-theme .modal-container {
    background: #ffffff;
}

.modal-backdrop.open .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 16px;
}

.header-borderless {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    color: var(--text-primary);
}

.circle-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

/* Modal Form styling */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.input-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.required {
    color: var(--accent-rose);
}

.form-input {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}

/* Profile Photo Uploader */
.photo-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.photo-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    object-fit: cover;
}

.photo-preview:hover {
    border-color: var(--accent-primary);
    background: rgba(255,255,255,0.06);
}

.upload-placeholder-icon {
    width: 28px;
    height: 28px;
    color: var(--text-muted);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.help-text {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

/* Detail Card styles */
.detail-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0 20px;
}

.detail-avatar-container {
    position: relative;
    margin-bottom: 16px;
}

.detail-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.detail-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 600;
    font-size: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.detail-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-id {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.detail-position-badge {
    margin-bottom: 24px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

.detail-info-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.detail-info-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.detail-info-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

/* Toast Messages */
.toast {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 14, 33, 0.9);
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------
   SMIS ADDITIONAL STYLES
   - Splash Screen
   - Dashboard Grid Menu
   - Segmented Controller
   - Hair & Dress Inspection Choice Toggles
   - Calendar UI & Schedules
   - Documents Grid & Official PDF Simulator
-------------------------------------------------- */

/* 1. Splash Screen Styling */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, #17153a 0%, #06050e 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 320px;
    width: 100%;
    padding: 20px;
}

.splash-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #312e81 100%);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4), 0 0 20px rgba(99, 102, 241, 0.2);
    color: #fff;
    margin-bottom: 24px;
    animation: logoPulse 2s infinite ease-in-out;
}

.splash-logo i {
    width: 44px;
    height: 44px;
}

@keyframes logoPulse {
    0% { transform: scale(1); box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 15px 45px rgba(99, 102, 241, 0.6), 0 0 30px rgba(99, 102, 241, 0.3); }
    100% { transform: scale(1); box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4); }
}

.splash-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 4px;
    background: linear-gradient(to right, #ffffff, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.splash-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.splash-loader {
    width: 130px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 25px;
}

.loader-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, #818cf8 100%);
    animation: loadingAnim 2.2s linear forwards;
    transform-origin: left;
}

@keyframes loadingAnim {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

.splash-skip-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.splash-skip-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.splash-skip-btn i {
    width: 12px;
    height: 12px;
}

/* 2. Dashboard Grid Menu */
.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 4px;
}

.menu-grid-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-md);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.menu-grid-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 5th grid item takes full width */
.menu-grid-btn:nth-child(5) {
    grid-column: span 2;
    flex-direction: row;
    gap: 16px;
    padding: 10px 16px;
}

.menu-grid-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.menu-grid-icon i {
    width: 18px;
    height: 18px;
}

.menu-grid-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 3. Segmented Control Switcher */
.segmented-control {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: 14px;
    width: 100%;
    margin-bottom: 12px;
}

.segment-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 6px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.segment-btn.active {
    background: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.segment-btn i {
    width: 14px;
    height: 14px;
}

.subtab-content {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.subtab-content.active {
    display: flex;
}

/* 4. Hair & Dress inspection Choice toggles */
.status-toggle-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.status-btn-choice {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 8px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.01);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

input[name="hairStatus"]:checked + label.pass-choice,
input[name="dressStatus"]:checked + label.pass-choice {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--accent-emerald);
    color: #10b981;
}

input[name="hairStatus"]:checked + label.fail-choice,
input[name="dressStatus"]:checked + label.fail-choice {
    background: rgba(244, 63, 94, 0.12);
    border-color: var(--accent-rose);
    color: #f43f5e;
}

/* 5. Inspection Log details */
.inspection-log-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.inspection-log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
}

.log-student-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.log-student-name {
    font-weight: 500;
    color: var(--text-primary);
}

.log-student-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.log-status-badges {
    display: flex;
    gap: 6px;
}

.log-status-badge {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

.log-status-badge.pass {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.log-status-badge.fail {
    background: rgba(244, 63, 94, 0.12);
    color: #f43f5e;
}

/* 6. Calendar & Work Schedule */
.calendar-card {
    padding: 14px;
}

.calendar-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.calendar-nav-btn i {
    width: 14px;
    height: 14px;
}

.calendar-month-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

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

.calendar-day {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.04);
}

.calendar-day.empty {
    pointer-events: none;
    opacity: 0.15;
}

.calendar-day.today {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--accent-indigo);
    font-weight: 700;
}

.calendar-day.selected {
    background: var(--accent-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
    font-weight: 600;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent-emerald);
}

.calendar-day.selected.has-event::after {
    background: #ffffff;
}

/* Schedule Event list */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-item {
    padding: 12px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition-smooth);
}

.schedule-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
}

.schedule-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.schedule-item-badge {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

.schedule-item-badge.full-day {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-indigo);
}

.schedule-item-badge.half-day {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-amber);
}

.schedule-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.schedule-item-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.schedule-item-meta span i {
    width: 11px;
    height: 11px;
    color: var(--text-muted);
}

.schedule-item-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
    border-top: 1px dashed rgba(255, 255, 255, 0.04);
    padding-top: 6px;
}

.schedule-status-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.schedule-status-badge.approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.schedule-status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* 7. Documents Grid */
.doc-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.doc-categories::-webkit-scrollbar {
    display: none;
}

.doc-cat-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.doc-cat-btn.active {
    background: var(--text-primary);
    color: var(--bg-main);
    border-color: var(--text-primary);
    font-weight: 600;
}

.documents-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.document-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.document-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.2);
}

.document-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-rose);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.document-icon i {
    width: 18px;
    height: 18px;
}

.document-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.document-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

.document-meta {
    display: flex;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.document-chevron {
    color: var(--text-muted);
    width: 16px;
    height: 16px;
}

.document-card:hover .document-chevron {
    color: var(--text-primary);
    transform: translateX(1px);
}

/* 8. Official PDF Reader Simulator */
.doc-modal {
    max-width: 440px;
}

.doc-viewer-body {
    background: #ffffff;
    color: #1e293b;
    padding: 24px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    max-height: 380px;
    overflow-y: auto;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
    line-height: 1.45;
}

.official-doc {
    font-size: 0.75rem;
    color: #334155;
}

.official-doc-header {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.garuda-logo {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ef4444; /* Standard Red Garuda */
}

.garuda-logo i {
    width: 32px;
    height: 32px;
}

.official-doc-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2px;
    color: #0f172a;
}

.official-doc-number {
    color: #475569;
    font-size: 0.7rem;
}

.official-doc-body {
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-word;
}

.official-doc-p {
    text-indent: 20px;
    margin-bottom: 8px;
}

.official-doc-signature-area {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 16px;
}

.official-doc-sign {
    font-style: italic;
    font-weight: bold;
    color: #1d4ed8;
    margin-bottom: 2px;
    border-bottom: 1px solid #cbd5e1;
    padding: 0 8px;
}

.official-doc-signer {
    font-weight: 600;
    font-size: 0.75rem;
    color: #0f172a;
}

.official-doc-signer-title {
    font-size: 0.7rem;
    color: #475569;
}

.official-doc-stamp {
    position: absolute;
    bottom: -10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border: 1px dashed rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(239, 68, 68, 0.5);
    font-size: 0.5rem;
    font-weight: 700;
    transform: rotate(15deg);
    text-transform: uppercase;
}

/* Styling alignment fixes for inspector cards */
.inspector-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inspector-id-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
    align-self: flex-start;
    color: var(--text-secondary);
}

/* --------------------------------------------------
   SMIS SYSTEM REVISIONS & UPGRADES
   - 1. Login Page Styles
   - 2. Haircut/Dress Checklist Styles (Group list checking)
   - 3. Add Schedule Modal styling & Event Delete Button
   - 4. PDF Iframe Reader display
   - 5. Theme Contrast Fixes for Light/Dark modes
-------------------------------------------------- */

/* 1. Login Page Styles */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, #121127 0%, #030206 100%);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    opacity: 1;
    visibility: visible;
}

.login-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.login-container {
    background: rgba(20, 18, 44, 0.7);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 380px;
    border-radius: var(--border-radius-lg);
    padding: 36px 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 
                0 0 40px rgba(99, 102, 241, 0.1),
                inset 0 1px 1px rgba(255, 255, 255, 0.08);
    animation: loginSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo-icon {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #221f52 100%);
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.35);
    color: #fff;
    margin: 0 auto 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.login-logo-icon i {
    width: 26px;
    height: 26px;
}

.login-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
    white-space: nowrap;
}

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

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.input-with-icon .form-input {
    padding-left: 38px;
}

/* 2. Haircut/Dress Checklist Styles (Group list checking) */
.dress-checklist-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition-smooth);
}

.dress-checklist-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dress-checklist-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}

.light-theme .dress-checklist-controls {
    border-top: 1px dashed rgba(0, 0, 0, 0.05);
}

.dress-control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dress-control-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dress-control-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2px;
}

.light-theme .dress-control-toggle {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dress-toggle-btn {
    flex: 1;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 2px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    text-align: center;
    transition: var(--transition-smooth);
}

.dress-toggle-btn.pass.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.dress-toggle-btn.fail.active {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
}

.light-theme .dress-toggle-btn.pass.active {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.light-theme .dress-toggle-btn.fail.active {
    background: rgba(244, 63, 94, 0.12);
    color: #be123c;
}

/* 3. Event Delete Button */
.btn-delete-icon {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.btn-delete-icon:hover {
    background: rgba(244, 63, 94, 0.18);
    color: #ef4444;
}

.btn-delete-icon i {
    width: 16px;
    height: 16px;
}

/* 4. PDF Iframe Reader display */
.pdf-iframe-container {
    width: 100%;
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

/* 5. Theme Contrast Fixes for Light/Dark modes */
.bg-purple-light { background: rgba(139, 92, 246, 0.18) !important; color: #a78bfa !important; }
.bg-emerald-light { background: rgba(16, 185, 129, 0.18) !important; color: #34d399 !important; }
.bg-amber-light { background: rgba(245, 158, 11, 0.18) !important; color: #fbbf24 !important; }
.bg-indigo-light { background: rgba(99, 102, 241, 0.18) !important; color: #818cf8 !important; }
.bg-rose-light { background: rgba(244, 63, 94, 0.18) !important; color: #fb7185 !important; }

/* In Light Mode, apply darker text for readability on icons */
.light-theme .bg-purple-light { background: rgba(139, 92, 246, 0.12) !important; color: #6d28d9 !important; }
.light-theme .bg-emerald-light { background: rgba(16, 185, 129, 0.12) !important; color: #047857 !important; }
.light-theme .bg-amber-light { background: rgba(245, 158, 11, 0.12) !important; color: #b45309 !important; }
.light-theme .bg-indigo-light { background: rgba(99, 102, 241, 0.12) !important; color: #4338ca !important; }
.light-theme .bg-rose-light { background: rgba(244, 63, 94, 0.12) !important; color: #be123c !important; }

.light-theme .nav-item i {
    color: #64748b;
}
.light-theme .nav-item.active i {
    color: var(--accent-primary);
}
.light-theme .nav-item span {
    color: #64748b;
}
.light-theme .nav-item.active span {
    color: var(--accent-primary);
    font-weight: 600;
}

/* --------------------------------------------------
   SMIS ADDITIONAL REVISIONS
   - Fullscreen modals for PDF Reader and Details
   - Enlarged and enhanced detail avatar
   - Dropdown menu options readability & contrast
   - Input placeholder styles
   -------------------------------------------------- */

/* Fullscreen Document Modal override */
.modal-backdrop .modal-container.doc-modal {
    width: 100%;
    height: 100%;
    max-height: 100% !important;
    border-radius: 0 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.doc-modal .doc-viewer-body {
    flex: 1;
    max-height: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.doc-modal .pdf-iframe-container {
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    border: none !important;
}

/* Fullscreen Detail Modal override */
.modal-backdrop .modal-container.detail-modal {
    width: 100%;
    height: 100%;
    max-height: 100% !important;
    border-radius: 0 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.detail-modal .detail-card-body {
    flex: 1;
    justify-content: center;
    padding: 20px 10px;
    gap: 16px;
}

/* Larger and crisper Inspector photos */
.detail-avatar {
    width: 180px !important;
    height: 180px !important;
    border-radius: 24px !important;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.detail-placeholder {
    width: 180px !important;
    height: 180px !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white !important;
    font-weight: 600;
    font-size: 3.5rem !important;
    border: 4px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Photo upload preview enlargement */
.photo-preview {
    width: 140px !important;
    height: 140px !important;
    border-radius: 20px !important;
}

/* Dropdown readability & Contrast overrides */
select option {
    background-color: #121127 !important;
    color: #f8fafc !important;
}

.light-theme select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* Placeholder and datepicker overrides */
.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

::-webkit-calendar-picker-indicator {
    filter: invert(0.85);
    cursor: pointer;
}

.light-theme ::-webkit-calendar-picker-indicator {
    filter: none;
}

/* Custom Confirm Modal styling */
.confirm-modal-container {
    max-width: 340px !important;
    margin: auto;
    border-radius: var(--border-radius-lg) !important;
    text-align: center;
    border: 1px solid var(--card-border) !important;
    background: #0f0e21 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    align-self: center !important;
    margin-bottom: auto !important;
    margin-top: auto !important;
}

.light-theme .confirm-modal-container {
    background: #ffffff !important;
}

.confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.12);
    color: var(--accent-rose);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto 0;
}

.confirm-icon i {
    width: 28px;
    height: 28px;
}

.confirm-body {
    margin-bottom: 20px;
    margin-top: 10px;
}

.confirm-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.confirm-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.confirm-footer {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* Edit icon button for schedule events */
.btn-edit-icon {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--accent-indigo);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-edit-icon:hover {
    background: rgba(99, 102, 241, 0.25);
    transform: scale(1.05);
}

.btn-edit-icon i {
    width: 16px;
    height: 16px;
}

/* Avatar layout and status dot for active checking */
.avatar-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.status-dot-present {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background-color: var(--accent-emerald);
    border: 2px solid var(--bg-main);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
    z-index: 2;
}

.light-theme .status-dot-present {
    border-color: #ffffff;
}

/* Fullscreen Settings subscreen implementation */
#tab-settings {
    position: absolute;
    top: 40px; /* status-bar height */
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
    z-index: 99;
    background: var(--bg-gradient);
    background-color: var(--bg-main);
    display: none;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

#tab-settings.active {
    display: flex;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-bar {
    z-index: 101; /* status bar remains visible on top of settings page */
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Light Theme Overrides for Login Screen */
.light-theme .login-screen {
    background: radial-gradient(circle at 50% 30%, #f1f5f9 0%, #cbd5e1 100%);
}

.light-theme .login-container {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1), 
                0 0 40px rgba(67, 56, 202, 0.05),
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.light-theme .login-logo-icon {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #c7d2fe 100%);
    box-shadow: 0 12px 24px rgba(67, 56, 202, 0.15);
}

.light-theme .login-title {
    background: linear-gradient(to right, #1e1b4b, #4338ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-theme .login-subtitle {
    color: #475569;
}

.light-theme .login-container .form-input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

.light-theme .login-container .form-input:focus {
    background: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12);
}

.light-theme .login-container .form-input::placeholder {
    color: #64748b;
    opacity: 0.7;
}

.light-theme .login-container .input-with-icon i {
    color: #64748b;
}

/* Light Theme Overrides for Calendar elements */
.light-theme .calendar-nav-btn {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: var(--text-primary) !important;
}

.light-theme .calendar-nav-btn:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    color: var(--text-primary) !important;
}

.light-theme .calendar-day:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

.light-theme .calendar-day.today {
    border-color: rgba(67, 56, 202, 0.4) !important;
    color: var(--accent-indigo) !important;
}

.light-theme .calendar-day.selected {
    background: var(--accent-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(67, 56, 202, 0.2) !important;
}

.light-theme ::-webkit-calendar-picker-indicator {
    filter: invert(0) !important;
}


