/* ===== SHARED ANIMATIONS ===== */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3),
                    0 0 40px rgba(239, 68, 68, 0.2),
                    0 0 60px rgba(239, 68, 68, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.4),
                    0 0 50px rgba(239, 68, 68, 0.3),
                    0 0 70px rgba(239, 68, 68, 0.2);
    }
}

/* ===== ADMIN LOGIN STYLES ===== */
.gradient-bg {
    background: linear-gradient(-45deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #667eea 100%);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== SUPERADMIN LOGIN STYLES ===== */
.gradient-bg-dark {
    background: linear-gradient(-45deg, #0f0c29 0%, #302b63 25%, #24243e 50%, #0f0c29 100%);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.glass-effect-dark {
    background: rgba(30, 30, 45, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.neon-glow {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3),
                0 0 40px rgba(239, 68, 68, 0.2),
                0 0 60px rgba(239, 68, 68, 0.1);
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ===== ADMIN SIDEBAR ===== */
.admin-sidebar {
    transition: all 0.3s ease;
    width: 280px;
}

.admin-sidebar.collapsed {
    width: 80px;
}

.admin-sidebar.collapsed .sidebar-text {
    display: none;
}

.admin-sidebar.collapsed .sidebar-brand span {
    display: none;
}

/* ===== SUPERADMIN SIDEBAR ===== */
.superadmin-sidebar {
    transition: all 0.3s ease;
    width: 280px;
    height: 100vh;
    position: sticky;
    top: 0;
}

.superadmin-sidebar.collapsed {
    width: 80px;
}

.superadmin-sidebar.collapsed .sidebar-text {
    display: none;
}

.superadmin-sidebar.collapsed .sidebar-brand span {
    display: none;
}

/* Prevent submenu interaction when sidebar is collapsed */
.superadmin-sidebar.collapsed details {
    pointer-events: none;
}

/* Keep the icon visible and centered when collapsed */
.superadmin-sidebar.collapsed details summary {
    justify-content: center;
}

/* ===== DATATABLES THEME INTEGRATION ===== */
.dataTables_wrapper {
    color: inherit;
    margin-top: 1rem;
}

.dataTables_filter input {
    margin-left: 0.5rem;
}

.dataTables_length select {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

table.dataTable thead th {
    background: transparent;
    color: inherit;
}

/* DataTables 2.x Styling Classes Support */
/* Stripe (zebra striping) */
table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd {
    background-color: rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] table.dataTable.stripe tbody tr.odd,
html[data-theme="dark"] table.dataTable.display tbody tr.odd {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Hover effect */
table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075) !important;
}

html[data-theme="dark"] table.dataTable.hover tbody tr:hover,
html[data-theme="dark"] table.dataTable.display tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075) !important;
}

/* Order column highlighting */
table.dataTable.order-column tbody tr > .sorting_1,
table.dataTable.display tbody tr > .sorting_1 {
    background-color: rgba(0, 0, 0, 0.019);
}

html[data-theme="dark"] table.dataTable.order-column tbody tr > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr > .sorting_1 {
    background-color: rgba(255, 255, 255, 0.019);
}

table.dataTable.order-column.stripe tbody tr.odd > .sorting_1,
table.dataTable.display.stripe tbody tr.odd > .sorting_1 {
    background-color: rgba(0, 0, 0, 0.054);
}

html[data-theme="dark"] table.dataTable.order-column.stripe tbody tr.odd > .sorting_1,
html[data-theme="dark"] table.dataTable.display.stripe tbody tr.odd > .sorting_1 {
    background-color: rgba(255, 255, 255, 0.054);
}

/* Cell borders */
table.dataTable.cell-border tbody th,
table.dataTable.cell-border tbody td {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] table.dataTable.cell-border tbody th,
html[data-theme="dark"] table.dataTable.cell-border tbody td {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Row borders */
table.dataTable.row-border tbody th,
table.dataTable.row-border tbody td {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] table.dataTable.row-border tbody th,
html[data-theme="dark"] table.dataTable.row-border tbody td {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Table padding and spacing */
table.dataTable thead th,
table.dataTable thead td,
table.dataTable tbody th,
table.dataTable tbody td {
    padding: 10px 18px;
}

/* ===== DASHBOARD ANIMATIONS ===== */
/* Progress circle animation for dashboard */
@keyframes countdown {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: 339.292; }
}

/* Countdown radial progress */
.countdown-radial {
    --value: 100;
    --size: 8rem;
    --thickness: 8px;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 220px;
}

/* ===== DAISYUI MODAL BACKDROP BLUR ===== */
dialog.modal::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Animation delay utilities */
.animate-delay-1 {
    animation-delay: 1s;
}

.animate-delay-2 {
    animation-delay: 2s;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 220px;
}
