/* ============================================
   UNRIKA Attendance System - Premium Stylesheet
   Color Scheme: Deep Blue (#003366) + Golden Yellow (#FFC107)
   ============================================ */

:root {
    --primary: #003366;
    --primary-dark: #001a33;
    --primary-light: #004d99;
    --accent: #FFC107;
    --accent-dark: #ff9800;
    --accent-light: #ffca28;
    
    /* Theme Variables (Light Default) */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    --bg-box: #f1f5f9;
    --border-color: #e2e8f0;
    --border-input: #cbd5e1;
    --text-main: #1e293b;
    --text-muted: #94a3b8;
    --text-light: #e2e8f0;
    --text-white: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-strong: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.2);

    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode (System Preference) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0f172a;
        --bg-card: #1e293b;
        --bg-input: #0f172a;
        --bg-box: #1e293b;
        --border-color: #334155;
        --border-input: #475569;
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        --card-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.6);
        --glass-bg: rgba(0, 0, 0, 0.2);
        --glass-bg-strong: rgba(0, 0, 0, 0.4);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
}

/* Admin Theme (Forced Dark) */
body.admin-theme {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #0f172a;
    --bg-box: #1e293b;
    --border-color: #334155;
    --border-input: #475569;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(0, 0, 0, 0.2);
    --glass-bg-strong: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ============= RESET ============= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============= BODY ============= */
body {
    background: var(--bg-body);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============= SCROLLBAR ============= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ============= SELECTION ============= */
::selection {
    background: var(--accent);
    color: var(--primary-dark);
}

/* Background shapes removed for cleaner UI */

/* ============= CONTAINER ============= */
.container {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ============= CARD ============= */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fadeIn 0.6s ease-out;
}

.glass-card:hover {
    box-shadow: var(--card-shadow-hover);
}

/* ============= CAMPUS LOGO ============= */
.campus-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3), 0 0 40px rgba(255, 193, 7, 0.1);
    margin-bottom: 15px;
    transition: transform var(--transition);
}

.campus-logo:hover {
    transform: scale(1.05) rotate(5deg);
}

/* ============= LOGO FALLBACK ============= */
.logo-fallback {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3), 0 0 40px rgba(255, 193, 7, 0.1);
}

.logo-fallback i {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

/* ============= HEADER ============= */
.header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.95rem;
}

.live-clock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-box);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.85rem;
    margin-top: 12px;
    color: var(--text-main);
}

.live-clock i {
    color: var(--accent);
    font-size: 1rem;
}

/* ============= FORM ============= */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 1.2rem;
    z-index: 2;
    transition: color var(--transition);
}

.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all var(--transition);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.input-wrapper input:focus + i,
.input-wrapper input:focus ~ i {
    color: var(--accent-dark);
}

.input-wrapper:has(input:focus) i {
    color: var(--accent-dark);
}

/* ============= SELECT STYLING ============= */
select {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-input);
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-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='%2364748b'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px;
}

select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.input-wrapper:has(select:focus) i {
    color: var(--accent-dark);
}

/* ============= TEXTAREA ============= */
textarea {
    width: 100%;
    padding: 14px 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-input);
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: all var(--transition);
}

textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

textarea::placeholder {
    color: #94a3b8;
}

/* ============= FEATURE SECTION ============= */
.feature-section {
    margin-top: 25px;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.upload-box {
    background: var(--bg-box);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    border: 2px dashed var(--border-input);
    transition: all var(--transition);
}

.upload-box:hover {
    border-color: var(--accent);
}

.upload-box.has-file {
    border-color: var(--success);
    border-style: solid;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.upload-preview {
    margin: 10px 0;
}

.upload-preview img {
    max-height: 120px;
    border-radius: var(--radius-sm);
}

.upload-file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin: 10px 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* ============= LOCATION BOX ============= */
.location-box {
    background: var(--bg-box);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    transition: all var(--transition);
}

.location-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 500;
}

.location-status::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.location-box.detected .location-status::before {
    background: var(--success);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.location-box.detecting .location-status::before {
    background: var(--accent);
    animation: pulse 1s ease-in-out infinite;
}

.location-box.failed .location-status::before {
    background: var(--error);
}

.location-coords {
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    color: var(--text-main);
    margin-bottom: 10px;
    padding: 6px 10px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* ============= CAMERA BOX ============= */
.camera-box {
    background: var(--bg-box);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
}

video#cameraPreview {
    width: 100%;
    border-radius: var(--radius-md);
    transform: scaleX(-1);
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.photo-preview {
    width: 100%;
    max-height: 200px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent);
}

.camera-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============= BUTTONS ============= */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition);
    margin-top: 25px;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary i {
    font-size: 1.2rem;
}

.btn-secondary {
    padding: 10px 18px;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-box);
    border-color: var(--text-muted);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-accent {
    padding: 10px 18px;
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.btn-danger {
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--error), #dc2626);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.82rem;
}

.btn-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.btn-tab:hover {
    color: var(--primary);
}

.btn-tab.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* ============= STATUS MESSAGE ============= */
.status-message {
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideUp 0.3s ease-out;
}

.status-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.status-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.hidden {
    display: none !important;
}

/* ============= TOGGLE SWITCH ============= */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-input);
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider {
  background-color: var(--success);
}
input:checked + .slider:before {
  transform: translateX(22px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

/* ============= FOOTER ============= */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

footer a {
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    transition: all var(--transition);
}

footer a:hover {
    text-decoration: underline;
    color: var(--accent-light);
}

/* ============= NUMBER INPUT ARROWS HIDDEN ============= */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ============= STATUS BADGES (Inline) ============= */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-hadir {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.status-izin {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.status-sakit {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.status-alpa {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* ============= STATUS BADGES ROW (Admin Dashboard) ============= */
.status-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    justify-content: center;
}

.status-badge-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    min-width: 120px;
    justify-content: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.status-badge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.status-badge-card .badge-count {
    font-size: 1.4rem;
    font-weight: 800;
}

.status-badge-card .badge-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ============= SURAT SAKIT LINK ============= */
.surat-link {
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.surat-link:hover {
    text-decoration: underline;
    color: var(--accent-light);
}

/* ============================================
   ADMIN STYLES
   ============================================ */

/* ============= ADMIN CONTAINER ============= */
.admin-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* ============= LOGIN CARD ============= */
.login-card {
    max-width: 420px;
    margin: 0 auto;
}

/* ============= NAVBAR ============= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    margin-bottom: 25px;
    border-radius: var(--radius-lg);
}

.navbar:hover {
    transform: none;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-white), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.nav-user i {
    font-size: 1.3rem;
    color: var(--accent);
}

/* ============= STATS GRID ============= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fadeIn 0.6s ease-out;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: rotate(-45deg);
}

.stat-blue {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}

.stat-green {
    background: linear-gradient(135deg, #166534, #22c55e);
}

.stat-orange {
    background: linear-gradient(135deg, #c2410c, #f97316);
}

.stat-purple {
    background: linear-gradient(135deg, #6b21a8, #a855f7);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

/* ============= CHART SECTION ============= */
.chart-section {
    margin-bottom: 25px;
}

.chart-section:hover {
    transform: none;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.section-title i {
    color: var(--accent);
    font-size: 1.3rem;
}

.chart-container {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 5px 0;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    height: 100%;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 4px;
    cursor: pointer;
    position: relative;
}

.chart-bar:hover {
    background: linear-gradient(180deg, var(--accent-light), var(--accent));
    transform: scaleX(1.05);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.chart-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.chart-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

/* ============= FILTER SECTION ============= */
.filter-section {
    margin-bottom: 25px;
}

.filter-section:hover {
    transform: none;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.filter-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--text-white);
    outline: none;
    transition: all var(--transition);
}

.filter-input::placeholder {
    color: var(--text-muted);
}

.filter-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

/* Date input specific styles */
input[type="date"].filter-input {
    color-scheme: dark;
}

/* Filter select in admin */
.filter-input select,
select.filter-input {
    background: var(--glass-bg-strong);
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-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='%2394a3b8'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.filter-input select:focus,
select.filter-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

select.filter-input option {
    background: var(--primary-dark);
    color: var(--text-white);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

/* ============= TABLE ============= */
.table-section {
    margin-bottom: 25px;
}

.table-section:hover {
    transform: none;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 14px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid rgba(255, 193, 7, 0.2);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
    font-size: 0.88rem;
    color: var(--text-light);
}

.data-table tbody tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover {
    background: var(--glass-bg-strong);
}

/* ============= PHOTO THUMB ============= */
.photo-thumb {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform var(--transition);
    border: 1px solid var(--glass-border);
}

.photo-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.no-photo {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* ============= ACTION BUTTON ============= */
.action-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
    cursor: pointer;
}

/* ============= PAGINATION ============= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-info {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============= MODAL ============= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 1001;
}

.modal-close:hover {
    background: var(--error);
    transform: rotate(90deg);
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ============= MAP LINK ============= */
.map-link {
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.map-link:hover {
    text-decoration: underline;
    color: var(--accent-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-badges {
        gap: 8px;
    }

    .status-badge-card {
        padding: 10px 16px;
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .data-table {
        font-size: 0.82rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .status-badges {
        gap: 8px;
    }

    .status-badge-card {
        flex: 1;
        min-width: calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 25px 18px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .container {
        padding: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .admin-container {
        padding: 10px;
    }

    .navbar {
        padding: 12px 15px;
    }

    .chart-container {
        height: 150px;
    }

    .campus-logo {
        width: 70px;
        height: 70px;
    }

    .logo-fallback {
        width: 70px;
        height: 70px;
    }

    .logo-fallback i {
        font-size: 2rem;
    }

    .live-clock {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .filter-actions {
        width: 100%;
        justify-content: stretch;
    }

    .filter-actions .btn-primary,
    .filter-actions .btn-accent {
        flex: 1;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .status-badges {
        flex-direction: column;
    }

    .status-badge-card {
        min-width: 100%;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    33% {
        transform: translateY(-30px) scale(1.05);
    }
    66% {
        transform: translateY(15px) scale(0.98);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ============= LOADING SPINNER ============= */
.bx-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============= SPLIT LAYOUT (DESKTOP V4) ============= */
.split-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.split-brand {
    background: var(--primary);
    color: white;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
}

.split-brand .subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.split-brand h1 {
    color: white;
}

.desktop-illustration {
    display: none;
}

.mobile-header {
    text-align: center;
    margin-bottom: 25px;
}

.mobile-header h2 {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.split-form {
    flex: 1;
    background: #f8fafc;
}

/* DESKTOP MEDIA QUERY */
@media (min-width: 992px) {
    .split-layout {
        flex-direction: row;
    }

    .split-brand {
        flex: 1;
        max-width: 45%;
        padding: 60px;
        position: relative;
        overflow: hidden;
        box-shadow: 10px 0 25px rgba(0,0,0,0.05);
    }
    
    .split-brand::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("logo.png") center center no-repeat;
        background-size: 150%;
        opacity: 0.03;
        z-index: 0;
    }

    .brand-content {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 400px;
        text-align: left;
    }

    .split-brand .campus-logo {
        width: 110px;
        height: 110px;
        margin-left: 0;
        margin-bottom: 30px;
    }

    .split-brand h1 {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .split-brand .subtitle {
        font-size: 1.3rem;
        margin-bottom: 35px;
    }

    .split-brand .live-clock {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        margin-top: 0;
        font-size: 1rem;
        padding: 10px 20px;
    }

    .desktop-illustration {
        display: block;
        margin-top: 60px;
        padding-top: 40px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.95rem;
    }

    .desktop-illustration i {
        font-size: 3rem;
        color: var(--accent);
        margin-bottom: 15px;
        display: block;
    }

    .split-form {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #f1f5f9;
    }

    .mobile-header {
        display: block;
        text-align: left;
    }
    
    .container {
        padding: 40px;
        max-width: 550px;
        margin: 0;
    }
    
    .glass-card {
        padding: 50px 40px;
        box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1);
        border: none;
    }
}
