/* Global CSS for SMK YPI SEPUTIH MATARAM Presence System */

:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --primary: #147a6b;
    --primary-hover: #0e5c51;
    --primary-glow: rgba(20, 122, 107, 0.08);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.12);
    --text-main: #0f172a;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ==========================================================
   GLOBAL LAYOUT & HEADER/NAVIGATION
   ========================================================== */

/* Permanently Hide Desktop Top Navbar */
.navbar {
    display: none !important;
}

/* Unified Top Header */
.mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-bottom: 1px solid var(--card-border);
    padding: 0.65rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.mobile-header .nav-brand {
    font-size: 1.15rem;
    font-weight: 800;
    gap: 0.5rem;
    display: flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.025em;
}

.mobile-header .nav-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* Centered Bottom Navigation Bar */
.mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #ffffff;
    border-top: 1px solid var(--card-border);
    z-index: 1000;
    justify-content: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-bottom-nav li {
    max-width: 300px;
    width: 50%;
    text-align: center;
    height: 100%;
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    transition: all 0.2s ease;
    gap: 0.25rem;
}

.mobile-bottom-nav a i {
    font-size: 1.25rem;
    transition: transform 0.2s;
}

.mobile-bottom-nav a.active {
    color: var(--primary);
}

.mobile-bottom-nav a.active i {
    transform: scale(1.15);
    color: var(--primary);
}

/* Main Content Wrapper - Centered & Width Constrained */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 1000px;
    margin: 1.5rem auto 5.5rem auto !important;
    padding: 0 1.5rem !important;
}

footer {
    text-align: center;
    padding: 1.5rem 1.5rem 6.5rem 1.5rem !important; /* Safe padding for bottom nav */
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--card-border);
    background-color: #ffffff;
}

/* ==========================================================
   COMMON PREMIUM COMPONENTS
   ========================================================== */

.glass-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.05), 0 4px 8px -2px rgba(0, 0, 0, 0.02);
}

/* Welcome Card Banner */
.welcome-banner {
    background: linear-gradient(135deg, #147a6b 0%, #0d9488 50%, #064e3b 100%);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(20, 122, 107, 0.12);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.welcome-banner h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.welcome-banner p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
}

.welcome-banner strong {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-weight: 600;
}

/* ==========================================================
   DASHBOARD TAB CONTROLS (iOS Pill Tabs)
   ========================================================== */

.dashboard-tabs-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    padding-bottom: 2px;
}

.dashboard-tabs-container::-webkit-scrollbar {
    display: none;
}

.dashboard-tabs {
    display: inline-flex !important;
    background-color: rgba(203, 213, 225, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 9999px !important;
    padding: 3px !important;
    margin-bottom: 0 !important;
    width: auto !important;
    min-width: 100% !important;
    flex-wrap: nowrap !important;
    justify-content: space-around;
    gap: 2px !important;
    box-sizing: border-box;
}

.tab-link {
    border-radius: 9999px !important;
    border: none !important;
    font-size: 0.8rem !important;
    padding: 0.6rem 1rem !important;
    font-weight: 700;
    flex: 1;
    text-align: center;
    justify-content: center;
    transition: all 0.2s ease !important;
    background-color: transparent !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.tab-link:hover {
    background-color: transparent !important;
    color: var(--primary) !important;
}

.tab-link.active {
    background-color: #ffffff !important;
    color: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* ==========================================================
   SUMMARY STATISTICS CARDS (Responsive Responsive Grid)
   ========================================================== */

.dashboard-summary {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    margin-bottom: 1.25rem !important;
}

@media (min-width: 640px) {
    .dashboard-summary {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.85rem !important;
    }
}

@media (min-width: 1100px) {
    .dashboard-summary {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 0.75rem !important;
    }
}

.summary-card {
    border: none !important;
    color: #ffffff !important;
    padding: 0.75rem 0.85rem !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04) !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    position: relative;
    overflow: hidden;
    display: flex !important;
    min-height: auto !important;
}

.summary-card.stat-total {
    background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
}

.summary-card.stat-hadir {
    background: linear-gradient(135deg, #059669, #10b981) !important;
}

.summary-card.stat-lambat {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
}

.summary-card.stat-izin {
    background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
}

.summary-card.stat-sakit {
    background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
}

.summary-card.stat-alpa {
    background: linear-gradient(135deg, #4b5563, #6b7280) !important;
}

.summary-card.stat-absen {
    background: linear-gradient(135deg, #e11d48, #f43f5e) !important;
}

.summary-card .summary-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-card .summary-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.summary-card .summary-info h4 {
    font-size: 0.72rem !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    letter-spacing: 0.02em;
    margin-bottom: 0.05rem;
    white-space: nowrap;
}

.summary-card .summary-info p {
    font-size: 1.25rem !important;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.summary-card::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

/* ==========================================================
   CRUD GRID, FORMS & ACTIONS
   ========================================================== */

.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.actions-bar h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.crud-grid {
    display: grid;
    grid-template-columns: 0.7.3fr 1.3fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .crud-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background-color: #f1f5f9;
}

/* ==========================================================
   TABLE-TO-CARD TRANSFORMATION (UNIFIED ON ALL DEVICES)
   ========================================================== */

/* ==========================================================
   MODERN PREMIUM TABLE STYLING
   ========================================================== */

.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background-color: var(--card-bg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table-container thead {
    display: table-header-group !important;
    background-color: rgba(20, 122, 107, 0.04);
    border-bottom: 2px solid var(--card-border);
}

.table-container th {
    display: table-cell !important;
    padding: 0.9rem 1.25rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    width: auto !important;
}

.table-container tbody {
    display: table-row-group !important;
}

.table-container tr {
    display: table-row !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--card-border) !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease !important;
}

.table-container tr:last-child {
    border-bottom: none !important;
}

.table-container tr:hover {
    background-color: rgba(20, 122, 107, 0.02) !important;
    transform: none !important;
    box-shadow: none !important;
}

.table-container td {
    display: table-cell !important;
    padding: 0.9rem 1.25rem !important;
    border-bottom: none !important;
    font-size: 0.9rem !important;
    color: var(--text-main) !important;
    vertical-align: middle !important;
    text-align: left !important;
    width: auto !important;
}

.table-container td[data-label="Nama Siswa"] {
    border-bottom: none !important;
    padding-bottom: 0.9rem !important;
    margin-bottom: 0 !important;
    display: table-cell !important;
    text-align: left !important;
}

.table-container td[data-label="Nama Siswa"]::before {
    display: none !important;
}

.table-container td[data-label="Nama Siswa"] .student-avatar-wrapper {
    gap: 0.65rem !important;
    display: flex;
    align-items: center;
}

.table-container td[data-label="Nama Siswa"] .student-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-glow), rgba(20, 122, 107, 0.15));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid rgba(20, 122, 107, 0.2);
}

.table-container td[data-label="Nama Siswa"] .student-name-text {
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: var(--text-main);
}

.table-container td:not([data-label="Nama Siswa"]):not(.action-cell-td)::before {
    display: none !important;
}

.table-container td[data-label="QR Code"] {
    padding: 0.9rem 1.25rem !important;
}

.table-container td[data-label="QR Code"] div {
    flex-direction: row !important;
    gap: 0.5rem !important;
    align-items: center !important;
    display: flex !important;
}

.table-container td[data-label="QR Code"] img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 4px !important;
    border: 1px solid var(--card-border);
    padding: 1px;
    background: white;
}

.table-container td[data-label="QR Code"] span {
    font-family: monospace;
    font-size: 0.75rem !important;
    color: var(--text-muted);
}

.table-container td.action-cell-td {
    display: table-cell !important;
    padding: 0.9rem 1.25rem !important;
    text-align: left !important;
}

.table-container td.action-cell-td::before {
    display: none !important;
}

.action-cell {
    gap: 0.5rem !important;
    display: flex;
}

/* Standard responsive table container with horizontal scroll (no card transformation) */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.btn-icon {
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    border: 1px solid var(--card-border) !important;
    font-weight: 600;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: #f1f5f9;
}

.btn-edit {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: var(--warning) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}

.btn-edit::after {
    content: ' Edit' !important;
}

.btn-delete {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: var(--danger) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.btn-delete::after {
    content: ' Hapus' !important;
}

/* ==========================================================
   CLASS CARDS & OPTION BACKUPS
   ========================================================== */

.class-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
}

@media (min-width: 640px) {
    .class-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (min-width: 992px) {
    .class-cards-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.25rem !important;
    }
}

.class-card-link {
    padding: 0.85rem 1rem !important;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.85rem !important;
}

.class-card-link:hover {
    transform: translateY(-2px);
    border-color: var(--primary) !important;
    box-shadow: 0 8px 20px rgba(20, 122, 107, 0.08);
    background: rgba(20, 122, 107, 0.03) !important;
}

.class-card-icon {
    font-size: 1.35rem !important;
    color: var(--primary);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: rgba(20, 122, 107, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.class-card-body {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.class-card-title {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: var(--text-main);
    line-height: 1.2;
}

.class-card-subtitle {
    font-size: 0.78rem !important;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.option-card {
    border: 1px solid var(--card-border);
    border-radius: 10px !important;
    padding: 0.85rem 1rem !important;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff;
    text-decoration: none;
}

.option-card:hover {
    border-color: var(--primary);
    background-color: var(--primary-glow);
}

.option-card-label {
    font-weight: 600;
    font-size: 0.88rem !important;
    color: var(--text-main);
    display: block;
}

.option-card-desc {
    font-size: 0.75rem !important;
    color: var(--text-muted);
    display: block;
    margin-top: 0.1rem;
}

/* ==========================================================
   QR SCANNER PAGE STYLING
   ========================================================== */

.scanner-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .scanner-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 0.8rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 0.5rem !important;
        margin-top: 1rem auto 4.5rem auto !important;
    }
    .scanner-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 0.4rem;
    }
    .scanner-grid .glass-card {
        padding: 0.75rem 0.5rem !important;
    }
    .scanner-grid h2 {
        font-size: 0.95rem !important;
    }
    .scanner-grid p {
        font-size: 0.72rem !important;
    }
    .profile-avatar {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.3rem !important;
        margin-bottom: 0.5rem !important;
    }
    .profile-name {
        font-size: 0.85rem !important;
        margin-bottom: 0.2rem !important;
    }
    .profile-meta {
        font-size: 0.68rem !important;
        margin-bottom: 0.75rem !important;
    }
    .badge-status {
        padding: 0.2rem 0.6rem !important;
        font-size: 0.65rem !important;
    }
}

.camera-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(20, 122, 107, 0.25);
    background: #000;
    aspect-ratio: 1/1;
    max-width: 250px !important;
    width: 100%;
    margin: 0 auto 1rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), inset 0 0 40px rgba(0, 0, 0, 0.8);
}

#reader {
    width: 100%;
    height: 100%;
}

#reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.laser-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 12px var(--primary);
    z-index: 5;
    animation: scanAnim 3s linear infinite;
    pointer-events: none;
}

@keyframes scanAnim {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.profile-card {
    text-align: center;
    padding: 1.25rem 1rem !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 250px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.02);
    border: 2px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 2rem;
    color: var(--text-muted);
}

.profile-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.profile-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.badge-status {
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
}

/* Scanner Feedback States */
.state-idle {
    border-color: var(--card-border);
}

.state-success {
    border-color: var(--success);
    background-color: rgba(16, 185, 129, 0.04);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
}

.state-success .profile-avatar {
    border-color: var(--success);
    color: var(--success);
    background-color: var(--success-glow);
}

.state-error {
    border-color: var(--danger);
    background-color: rgba(239, 68, 68, 0.04);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.1);
}

.state-error .profile-avatar {
    border-color: var(--danger);
    color: var(--danger);
    background-color: var(--danger-glow);
}

.manual-input-box {
    margin-top: 1.25rem !important;
    max-width: 100% !important;
    display: flex;
    gap: 0.5rem;
}

.manual-input-box input {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.manual-input-box input:focus {
    border-color: var(--primary);
}

/* Alert Notification Toast Box */
.alert-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-toast.show {
    transform: translateX(0);
}

.alert-toast.success {
    background-color: #10b981;
    color: white;
}

.alert-toast.danger {
    background-color: #ef4444;
    color: white;
}

/* ==========================================================
   CUSTOM CONFIRMATION MODAL STYLE
   ========================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-card {
    max-width: 420px;
    width: 90%;
    padding: 1.75rem !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2) !important;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(22, 28, 45, 0.9) !important;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.warning-icon {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.modal-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-main);
}

.modal-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ==========================================================
   CUSTOM PAGINATION STYLING
   ========================================================== */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 12px;
    gap: 0.35rem;
    margin: 1.5rem 0 0.5rem 0;
    justify-content: center;
    align-items: center;
}

.pagination li {
    display: inline;
}

.pagination li a,
.pagination li span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 122, 107, 0.15);
}

.pagination li.active span {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(20, 122, 107, 0.3);
}

.pagination li.disabled span {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--card-border);
    cursor: not-allowed;
    opacity: 0.5;
}

