/* ==========================================================================
   SIM-SUPERVISI MADRASAH - STYLESHEET
   Aesthetics: Clean, Elegant Madrasah Emerald, Slate & Gold Accents
   Font Stack: EMIS GTK Kemenag RI (Segoe UI / System-UI Antialiased)
   Scale: Responsive 90% Zoom Equivalent Across Screens
   ========================================================================== */

/* Responsive Compact Scale Engine
   Ukuran teks dan fitur dibuatkan lebih compact, rapi, dan proporsional
   seperti zoom 90% pada browser serta responsif terhadap layar. */
html {
    font-size: 87.5%; /* 14px base: teks fitur lebih rapi, padat & pas */
    -webkit-text-size-adjust: 100%;
}

@media (min-width: 1400px) {
    html {
        font-size: 88%;
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    html {
        font-size: 86%; /* Sangat pas & lega untuk resolusi laptop 1366x768 / 1280x800 */
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    html {
        font-size: 87%; /* Tablet */
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 88.5%; /* Mobile responsif */
    }
}

:root {
    --brand-primary: #0f5132;
    --brand-accent: #10b981;
    --brand-light: #e8f5e9;
    --brand-warning: #d97706;
    --brand-dark: #0f172a;
    --sidebar-bg: #ffffff;
    --sidebar-width: 252px;
    --sidebar-collapsed-width: 72px;
    --body-bg: #f8fafc;
    --card-border: #e2e8f0;
    --app-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

*, body, button, input, select, textarea, .btn, .card, .table, .nav-link, .modal {
    font-family: var(--app-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--app-font);
    background-color: var(--body-bg);
    color: #1e293b;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
.fs-xs { font-size: 0.775rem !important; }
.fs-xxs { font-size: 0.675rem !important; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

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

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Brand Header */
.sidebar-header {
    background: #ffffff;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid #f1f5f9 !important;
}

.brand-logo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.18rem;
    color: #ffffff;
}

.brand-status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    background-color: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

.brand-details {
    line-height: 1.25;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2px;
}

.brand-title {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #0f172a;
}

.brand-subtitle {
    font-size: 0.74rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
}

/* Sidebar Scrollable Body */
.sidebar-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.85rem 0.75rem;
}

.sidebar-body::-webkit-scrollbar {
    width: 4px;
}

.sidebar-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Section Title & Divider */
.sidebar-section-title {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.6rem 0.35rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 0.85rem;
    margin-bottom: 0.25rem;
}

.sidebar-section-title:first-child {
    margin-top: 0.15rem;
}

.sidebar-section-title .section-line {
    flex-grow: 1;
    height: 1px;
    background: #f1f5f9;
    margin-left: 0.6rem;
}

/* Navigation Links */
.sidebar .nav {
    gap: 3px;
}

.sidebar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: #334155 !important;
    font-size: 0.865rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
}

.sidebar .nav-link:hover {
    color: #0f172a !important;
    background-color: #f1f5f9;
    transform: translateX(4px);
}

.sidebar .nav-link:hover .nav-icon-box {
    transform: scale(1.05);
}

.sidebar .nav-link:hover .nav-arrow {
    opacity: 0.8;
    transform: translateX(2px);
    color: #334155;
}

/* Active Nav State */
.sidebar .nav-link.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
    transform: none;
}

.sidebar .nav-link.active .nav-icon-box {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.sidebar .nav-link.active .nav-arrow {
    opacity: 1;
    color: #ffffff;
}

/* Nav Icon Box (Fixed Alignment Box) */
.nav-icon-box {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.98rem;
    margin-right: 11px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* Distinct Menu Accent Colors */
.icon-dashboard { color: #0284c7; background: #f0f9ff; border-color: #e0f2fe; }
.icon-jadwal { color: #2563eb; background: #eff6ff; border-color: #dbeafe; }
.icon-guru-spv { color: #059669; background: #ecfdf5; border-color: #d1fae5; }
.icon-wali-spv { color: #d97706; background: #fffbeb; border-color: #fef3c7; }
.icon-guru-data { color: #6366f1; background: #eef2ff; border-color: #e0e7ff; }
.icon-kelas-data { color: #0d9488; background: #f0fdfa; border-color: #ccfbf1; }
.icon-mapel-data { color: #ea580c; background: #fff7ed; border-color: #ffedd5; }
.icon-profile { color: #9333ea; background: #faf5ff; border-color: #f3e8ff; }
.icon-instrumen-setting { color: #0891b2; background: #ecfeff; border-color: #cffafe; }
.icon-logout { color: #dc2626; background: #fef2f2; border-color: #fee2e2; }

.nav-label {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.nav-arrow {
    font-size: 0.72rem;
    color: #94a3b8;
    opacity: 0;
    transition: all 0.2s ease;
    margin-left: 6px;
}

/* Logout Specific Styling */
.sidebar .nav-link-logout {
    color: #dc2626 !important;
}

.sidebar .nav-link-logout:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.sidebar .nav-link-logout:hover .nav-icon-box {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
}

/* Sidebar Footer (Profile Card) */
.sidebar-footer {
    padding: 0.85rem;
    border-top: 1px solid #f1f5f9 !important;
    background: #ffffff;
}

.user-profile-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.user-profile-box:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.user-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar-circle-sm {
    width: 33px;
    height: 33px;
    border-radius: 9px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.user-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #10b981;
    border: 2px solid #ffffff;
    box-shadow: 0 0 4px #10b981;
}

.user-meta {
    min-width: 0;
    flex: 1;
}

.user-meta-name {
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta-role {
    color: #64748b;
    font-size: 0.685rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.btn-profile-gear {
    color: #64748b;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-profile-gear:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Main Content Area */
.main-content {
    min-width: 0;
    background-color: var(--body-bg);
}

/* Cards & Components */
.card {
    border: 1px solid var(--card-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-card {
    background: linear-gradient(135deg, #0f5132 0%, #198754 60%, #157347 100%);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rubric Card in Evaluation Sheet */
.rubric-card {
    transition: border-color 0.2s, background-color 0.2s;
}

.rubric-card:hover {
    border-color: #86efac !important;
    background-color: #fcfdfc;
}

.btn-group .btn-check:checked + .btn-outline-success {
    background-color: #198754 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3);
}

.btn-group .btn-check:checked + .btn-outline-warning {
    background-color: #d97706 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

/* Login Split-Screen Layout */
.login-split-page {
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    background-color: #ffffff;
}

.login-split-left {
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
}

.login-split-right {
    min-height: 100vh;
    height: 100vh;
    position: relative;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.login-split-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 81, 50, 0.4) 0%, rgba(15, 23, 42, 0.25) 45%, rgba(15, 23, 42, 0.88) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
}

.login-glass-card {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.login-glass-pill {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.login-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Fallback Login Header */
.login-header {
    background: linear-gradient(135deg, #0f5132 0%, #198754 100%);
}

.brand-avatar {
    width: 68px;
    height: 68px;
}

/* Responsive Navigation on Small Screens */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -280px;
    }

    .sidebar.show {
        left: 0;
    }

    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1030;
    }

    .w-100-mobile {
        width: 100% !important;
        display: flex;
    }
    .w-100-mobile .btn {
        flex: 1;
    }
}

/* ==========================================================================
   TOMBOL HAMBURGER & MINI COLLAPSED SIDEBAR (ICON-ONLY MODE)
   ========================================================================== */
.btn-hamburger {
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #334155;
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

.btn-hamburger:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1 !important;
    transform: scale(1.04);
}

.btn-hamburger:active {
    transform: scale(0.96);
}

@media (min-width: 992px) {
    .sidebar {
        transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Keadaan Saat Sidebar Disembunyikan (Hanya Menampilkan Icon Menu) */
    .sidebar.collapsed {
        width: var(--sidebar-collapsed-width) !important;
        min-width: var(--sidebar-collapsed-width) !important;
    }

    .sidebar.collapsed .sidebar-header {
        padding: 1.15rem 0.4rem !important;
        justify-content: center !important;
    }

    .sidebar.collapsed .sidebar-header a {
        justify-content: center !important;
        width: 100%;
        gap: 0 !important;
    }

    .sidebar.collapsed .brand-details {
        display: none !important;
    }

    .sidebar.collapsed .brand-logo-wrapper {
        margin: 0 auto;
    }

    .sidebar.collapsed .sidebar-section-title {
        justify-content: center !important;
        padding: 0.5rem 0 !important;
        margin-top: 0.6rem !important;
    }

    .sidebar.collapsed .sidebar-section-title span {
        display: none !important;
    }

    .sidebar.collapsed .sidebar-section-title .section-line {
        margin: 0 auto !important;
        width: 24px !important;
        flex-grow: 0 !important;
        background: #e2e8f0 !important;
    }

    .sidebar.collapsed .sidebar-body {
        padding: 0.75rem 0.4rem !important;
    }

    .sidebar.collapsed .nav-link {
        padding: 0.55rem 0 !important;
        justify-content: center !important;
        margin: 0.15rem 0 !important;
    }

    .sidebar.collapsed .nav-icon-box {
        margin-right: 0 !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.05rem !important;
    }

    .sidebar.collapsed .nav-label,
    .sidebar.collapsed .nav-arrow {
        display: none !important;
    }

    .sidebar.collapsed .nav-link:hover {
        transform: scale(1.08) !important;
    }

    .sidebar.collapsed .sidebar-footer {
        padding: 0.85rem 0.35rem !important;
    }

    .sidebar.collapsed .user-profile-box {
        padding: 0.4rem 0 !important;
        justify-content: center !important;
        background: transparent !important;
        border-color: transparent !important;
    }

    .sidebar.collapsed .user-meta,
    .sidebar.collapsed .btn-profile-gear {
        display: none !important;
    }
}

/* Schedule UI Enhancements */
.date-badge-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    min-width: 76px;
    text-align: center;
    transition: all 0.2s ease;
}
.date-badge-box:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.date-badge-day {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    color: #0f172a;
}
.date-badge-month {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 2px;
    letter-spacing: 0.5px;
}
.date-badge-year {
    font-size: 0.65rem;
    color: #94a3b8;
}
.type-selector-card {
    cursor: pointer;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    transition: all 0.2s ease;
    background: #ffffff;
}
.type-selector-card:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}
.type-selector-card.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

/* ==========================================================================
   Feature Typography Refinements (Teks lebih rapi dan proporsional)
   ========================================================================== */
h4, .h4 {
    font-size: 1.2rem !important;
    font-weight: 700;
}
h5, .h5 {
    font-size: 1.05rem !important;
}
h6, .h6 {
    font-size: 0.92rem !important;
}

.stat-card .text-uppercase {
    font-size: 0.675rem !important;
    letter-spacing: 0.05em;
}
.stat-card h3 {
    font-size: 1.4rem !important;
}
.stat-card small {
    font-size: 0.74rem !important;
}
.stat-card .stat-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.stat-card .stat-icon i {
    font-size: 1.3rem !important;
}

/* Compact Table Formatting */
.table thead th {
    font-size: 0.69rem !important;
    letter-spacing: 0.04em;
    padding: 0.6rem 0.8rem !important;
    font-weight: 700;
}
.table tbody td {
    font-size: 0.815rem !important;
    padding: 0.6rem 0.8rem !important;
}
.table .fw-semibold, .table .fw-bold {
    font-size: 0.825rem;
}
.table .small, .table small {
    font-size: 0.735rem !important;
}

/* Badge Refinements */
.badge {
    font-size: 0.715rem !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Form Controls Compact */
.form-control, .form-select {
    font-size: 0.835rem !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: 8px !important;
}
.form-label {
    font-size: 0.775rem !important;
    margin-bottom: 0.35rem !important;
}

/* ==========================================================================
   Modern Aesthetic CRUD Action Buttons
   ========================================================================== */
.btn-crud-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-crud {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.765rem;
    font-weight: 600;
    padding: 0.34rem 0.7rem;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.25;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-crud i {
    font-size: 0.88rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.btn-crud:hover i {
    transform: scale(1.12);
}

.btn-crud-icon-only {
    width: 31px;
    height: 31px;
    padding: 0;
    border-radius: 8px;
}

/* Edit / Ubah Button */
.btn-crud-edit {
    background: #eff6ff;
    color: #2563eb !important;
    border-color: #dbeafe;
}
.btn-crud-edit:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
    transform: translateY(-1px);
}

/* Delete / Hapus Button */
.btn-crud-delete {
    background: #fef2f2;
    color: #dc2626 !important;
    border-color: #fee2e2;
}
.btn-crud-delete:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.28);
    transform: translateY(-1px);
}

/* View / Detail Button */
.btn-crud-view {
    background: #f8fafc;
    color: #475569 !important;
    border-color: #e2e8f0;
}
.btn-crud-view:hover {
    background: #334155 !important;
    color: #ffffff !important;
    border-color: #334155;
    box-shadow: 0 4px 10px rgba(51, 65, 85, 0.25);
    transform: translateY(-1px);
}

/* Grade / Scoring Button */
.btn-crud-grade {
    background: #ecfdf5;
    color: #059669 !important;
    border-color: #a7f3d0;
}
.btn-crud-grade:hover {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #059669;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.28);
    transform: translateY(-1px);
}

/* Print Button */
.btn-crud-print {
    background: #f0fdf4;
    color: #16a34a !important;
    border-color: #bbf7d0;
}
.btn-crud-print:hover {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.28);
    transform: translateY(-1px);
}

/* ==========================================================================
   T.P. & Semester Header Switcher Pill Styling
   ========================================================================== */
.btn-tp-switcher {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.38rem 0.85rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-tp-switcher:hover, 
.btn-tp-switcher:focus, 
.btn-tp-switcher[aria-expanded="true"] {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) !important;
}

.tp-icon-wrapper {
    width: 22px;
    height: 22px;
    background: #ecfdf5;
    border-radius: 50%;
    color: #059669;
    flex-shrink: 0;
}

.tp-badge-divider {
    display: inline-block;
    width: 1px;
    height: 15px;
    background-color: #cbd5e1;
    vertical-align: middle;
}

.btn-tp-switcher.dropdown-toggle::after {
    margin-left: 0.65rem !important;
    color: #64748b;
    vertical-align: 0.12em;
    transition: transform 0.2s ease;
}

.btn-tp-switcher[aria-expanded="true"].dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ==========================================================================
   SWEETALERT2 CUSTOM PREMIUM THEME & ANIMATIONS
   ========================================================================== */
.swal2-container {
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 10600 !important;
}

.swal2-popup.esupervisi-swal-popup {
    border-radius: 1.5rem !important;
    padding: 2rem 1.75rem 1.75rem !important;
    font-family: inherit !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    background: #ffffff !important;
}

.swal2-title {
    color: #0f172a !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.6rem !important;
    letter-spacing: -0.01em !important;
}

.swal2-html-container {
    color: #475569 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0.5rem 1rem 0 !important;
}

.swal2-actions {
    gap: 0.75rem !important;
    margin-top: 1.6rem !important;
    width: 100% !important;
    justify-content: center !important;
}

/* Custom Buttons */
.btn-swal-confirm {
    border-radius: 50rem !important;
    font-weight: 600 !important;
    padding: 0.65rem 1.65rem !important;
    font-size: 0.9rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-swal-success {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3) !important;
}

.btn-swal-success:hover {
    background: linear-gradient(135deg, #15803d, #166534) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4) !important;
}

.btn-swal-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
}

.btn-swal-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4) !important;
}

.btn-swal-cancel {
    border-radius: 50rem !important;
    font-weight: 600 !important;
    padding: 0.65rem 1.45rem !important;
    font-size: 0.9rem !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-swal-cancel:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

/* SweetAlert2 Icon Highlights */
.swal2-icon.swal2-success {
    border-color: #16a34a !important;
    color: #16a34a !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(22, 163, 74, 0.3) !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #16a34a !important;
}

.swal2-icon.swal2-error {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #dc2626 !important;
}

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.swal2-icon.swal2-question {
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}




