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

html, body {
    font-family: 'Outfit', 'Sarabun', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    color: #1e293b;
    min-height: 100vh;
}

/* Sidebar and Main Structure */
.page {
    display: flex;
    flex-direction: row;
}

main {
    flex: 1;
    min-width: 0;
    padding-bottom: 2rem;
}

.sidebar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 260px;
    min-height: 100vh;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

.top-row {
    background-color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Navigation Links (Light Theme) */
.sidebar .nav-link {
    color: #475569 !important;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem 0.75rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(99, 102, 241, 0.08);
    color: #4f46e5 !important;
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
    color: #4f46e5 !important;
    font-weight: 600;
}

/* Premium Bright Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    color: #0f172a;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.06), 0 5px 15px rgba(0, 0, 0, 0.04);
    border-color: rgba(255, 255, 255, 0.9);
}

.glass-modal {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Clock Display */
.clock-display {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 1rem 0;
}

/* Custom Table (Light Theme) */
.table-dark-custom {
    color: #334155;
    background: transparent;
}

.table-dark-custom th {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table-dark-custom td {
    background-color: transparent;
    border-color: rgba(0, 0, 0, 0.04);
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover td {
    background-color: rgba(99, 102, 241, 0.03) !important;
    color: #000;
}

/* Bright input overrides */
.bg-dark-input {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bg-dark-input:focus {
    background-color: #fff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
    outline: none;
}

/* Glow Buttons */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: none;
    font-weight: 600;
    transition: filter 0.2s ease, transform 0.1s ease;
    border-radius: 10px;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-glow {
    position: relative;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-glow:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

/* Tabs customization */
.custom-tabs .nav-link {
    color: #64748b;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: transparent;
    transition: color 0.2s, border-color 0.2s;
}

.custom-tabs .nav-link:hover {
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.1);
}

.custom-tabs .nav-link.active {
    color: #4f46e5 !important;
    background: transparent !important;
    border-bottom: 2px solid #4f46e5 !important;
}

/* Alerts style */
.alert-info {
    background: rgba(99, 102, 241, 0.1) !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
    color: #4f46e5 !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    color: #b45309 !important;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    color: #047857 !important;
}

/* Utilities */
.border-warning-custom {
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.text-light {
    color: #1e293b !important;
}

.text-secondary {
    color: #64748b !important;
}

.text-muted {
    color: #94a3b8 !important;
}

.modal-header .btn-close {
    filter: none !important;
}

.btn-close-white {
    filter: none !important;
}