/* public/assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #1d4ed8;
    --primary-hover: #1e40af;
    --primary-light: #eff6ff;
    --secondary-color: #64748b;
    --success-color: #16a34a;
    --success-light: #dcfce7;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #dc2626;
    --danger-light: #fee2e2;
    --dark-color: #0f172a;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --sidebar-width: 260px;
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--light-bg);
    color: #334155;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout wrapper */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background: #0f172a;
    color: #f8fafc;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 1040;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.sidebar-brand:hover {
    color: #93c5fd;
}

.sidebar-brand img {
    height: 38px;
    width: auto;
}

.sidebar-menu {
    padding: 1rem 0.75rem;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-header {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 0.75rem 1rem 0.35rem 1rem;
    font-weight: 700;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    color: #cbd5e1;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.nav-link-custom:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.nav-link-custom.active {
    color: #ffffff;
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}

.nav-link-custom i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

/* User profile card in sidebar */
.sidebar-user {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

/* Main Content Area */
.app-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f8fafc;
}

/* Top Navbar */
.app-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.content-body {
    padding: 1.75rem 2rem;
    flex-grow: 1;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* Multi-step Form Wizard */
.gform-banner {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: #ffffff;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 1.75rem 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.gform-banner h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
}

.gform-banner .school-pill {
    display: inline-block;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.gform-section-header {
    background: #eef2d8;
    color: #3f4722;
    padding: 0.9rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    border-left: 5px solid #65a30d;
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background: #e2e8f0;
    z-index: 1;
}

.wizard-step {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.wizard-step.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.2);
}

.wizard-step.completed {
    border-color: var(--success-color);
    background: var(--success-color);
    color: #ffffff;
}

/* Indicators Checklist Card */
.indicator-item {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 0.65rem;
    background: #ffffff;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.indicator-item:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.indicator-item.checked {
    background: #f0fdf4;
    border-color: #86efac;
}

.indicator-item input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    cursor: pointer;
}

/* Photo upload preview */
.photo-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.photo-upload-box:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.photo-preview-img {
    max-height: 200px;
    width: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 0.75rem;
}

/* Print CSS */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt;
    }
    .app-sidebar, .app-navbar, .no-print, .btn, .alert {
        display: none !important;
    }
    .app-main {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    .content-body {
        padding: 0 !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .print-only {
        display: block !important;
    }
    .page-break {
        page-break-before: always;
    }
}



/* ==========================================================================
   MODERN, GLOSSY & LUXURY ALERTS & NOTIFICATIONS
   ========================================================================== */

/* 1. In-Page Bootstrap Alerts (.alert) */
.alert {
    position: relative;
    border-radius: 1.15rem !important;
    padding: 1.15rem 1.6rem !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Glass Sheen Top Reflection */
.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    border-radius: 1.15rem 1.15rem 0 0;
    z-index: 0;
}

.alert > * {
    position: relative;
    z-index: 1;
}

/* Glowing Icon Box */
.alert-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Emerald Luxury Alert (Success) */
.alert-success {
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.95) 0%, rgba(220, 252, 231, 0.9) 50%, rgba(187, 247, 208, 0.85) 100%) !important;
    border-color: rgba(74, 222, 128, 0.45) !important;
    color: #14532d !important;
    box-shadow: 0 12px 30px -8px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
.alert-success .alert-icon-box {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.alert-success .alert-heading-text {
    color: #064e3b;
    letter-spacing: -0.01em;
}

/* Ruby / Rose Luxury Alert (Danger) */
.alert-danger {
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.95) 0%, rgba(254, 226, 226, 0.9) 50%, rgba(254, 205, 211, 0.85) 100%) !important;
    border-color: rgba(248, 113, 113, 0.45) !important;
    color: #7f1d1d !important;
    box-shadow: 0 12px 30px -8px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
.alert-danger .alert-icon-box {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.alert-danger .alert-heading-text {
    color: #7f1d1d;
}

/* Gold / Amber Luxury Alert (Warning) */
.alert-warning {
    background: linear-gradient(135deg, rgba(254, 252, 232, 0.95) 0%, rgba(254, 243, 199, 0.9) 50%, rgba(253, 230, 138, 0.85) 100%) !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
    color: #78350f !important;
    box-shadow: 0 12px 30px -8px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
.alert-warning .alert-icon-box {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.alert-warning .alert-heading-text {
    color: #78350f;
}

/* Sapphire / Azure Luxury Alert (Info) */
.alert-info {
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.95) 0%, rgba(224, 242, 254, 0.9) 50%, rgba(186, 230, 253, 0.85) 100%) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    color: #0c4a6e !important;
    box-shadow: 0 12px 30px -8px rgba(14, 165, 233, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
.alert-info .alert-icon-box {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.alert-info .alert-heading-text {
    color: #0c4a6e;
}

/* Close button on alert */
.alert .btn-close {
    background-size: 0.8rem;
    opacity: 0.6;
    transition: all 0.2s;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.alert .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
}

/* ==========================================================================
   2. SWEETALERT2 LUXURY & GLOSSY POPUP STYLES
   ========================================================================== */

.swal2-container.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(12px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
}

.luxury-swal-popup {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.94) 100%) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 35px 70px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.9) inset, 0 12px 35px rgba(37, 99, 235, 0.12) !important;
    padding: 2.25rem 2rem !important;
    font-family: var(--font-main) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Glossy reflection bar across top of SweetAlert modal */
.luxury-swal-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    border-radius: 1.5rem 1.5rem 0 0;
}

.luxury-swal-title {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 0.65rem !important;
    letter-spacing: -0.02em !important;
    line-height: 1.25 !important;
}

.luxury-swal-html {
    font-size: 0.95rem !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
}

/* SweetAlert Icons Enhanced */
.luxury-swal-popup .swal2-icon {
    border-width: 3px !important;
    margin: 0.5rem auto 1.25rem auto !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.8) !important;
}

.luxury-swal-popup .swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.6) 0%, rgba(253, 230, 138, 0.4) 100%) !important;
}

.luxury-swal-popup .swal2-icon.swal2-question {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.6) 0%, rgba(186, 230, 253, 0.4) 100%) !important;
}

.luxury-swal-popup .swal2-icon.swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.6) 0%, rgba(167, 243, 208, 0.4) 100%) !important;
}

.luxury-swal-popup .swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.6) 0%, rgba(254, 205, 211, 0.4) 100%) !important;
}

.luxury-swal-popup .swal2-icon.swal2-info {
    border-color: #06b6d4 !important;
    color: #06b6d4 !important;
    background: linear-gradient(135deg, rgba(207, 250, 254, 0.6) 0%, rgba(165, 243, 252, 0.4) 100%) !important;
}

/* Glossy 3D Buttons */
.swal2-actions {
    gap: 0.85rem !important;
    margin-top: 1rem !important;
}

.luxury-swal-confirm-btn {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 0.8rem 1.85rem !important;
    letter-spacing: 0.01em !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 20px rgba(29, 78, 216, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.luxury-swal-confirm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 28px rgba(29, 78, 216, 0.5) !important;
}

.luxury-swal-confirm-btn:active {
    transform: translateY(1px) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(29, 78, 216, 0.3) !important;
}

/* Danger Confirm Button Variant */
.luxury-swal-confirm-danger-btn {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 0.8rem 1.85rem !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 20px rgba(220, 38, 38, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.luxury-swal-confirm-danger-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 28px rgba(220, 38, 38, 0.5) !important;
}

/* Success Confirm Button Variant */
.luxury-swal-confirm-success-btn {
    background: linear-gradient(180deg, #10b981 0%, #059669 50%, #047857 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 0.8rem 1.85rem !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 20px rgba(5, 150, 105, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.luxury-swal-confirm-success-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 28px rgba(5, 150, 105, 0.5) !important;
}

/* Luxury Cancel Button */
.luxury-swal-cancel-btn {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%) !important;
    color: #64748b !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 0.8rem 1.6rem !important;
    box-shadow: inset 0 1px 0 #ffffff, 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.luxury-swal-cancel-btn:hover {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #334155 !important;
    transform: translateY(-2px) !important;
    box-shadow: inset 0 1px 0 #ffffff, 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   SEARCHABLE COMBOBOX / SELECT DROPDOWN COMPONENT
   ========================================================================== */
.cursor-pointer {
    cursor: pointer !important;
}

.custom-searchable-list {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2) !important;
    z-index: 99999 !important;
}

.teacher-item {
    transition: background-color 0.15s ease, padding-left 0.15s ease;
}

.teacher-item:not(.is-disabled):hover,
.teacher-item.active-item {
    background-color: #f0f7ff !important;
    padding-left: 1.25rem !important;
}

.teacher-item.is-disabled {
    cursor: not-allowed !important;
    opacity: 0.65;
}

#teacherDropdownList::-webkit-scrollbar {
    width: 6px;
}

#teacherDropdownList::-webkit-scrollbar-track {
    background: #f1f5f9;
}

#teacherDropdownList::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

#teacherDropdownList::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
