/* ================================================
   Powerhouse Engineering — Custom CSS
   Only styles that Tailwind CDN cannot handle
================================================ */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Glassmorphism */
.glass {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Sidebar transition */
#sidebar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
}

/* Staggered animation delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #6c63ff, #00d4aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.15);
}

/* Stat card accent line */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 9999px 9999px 0 0;
}

.stat-card.accent-violet::before {
    background: linear-gradient(to right, #6c63ff, #8b5cf6);
}

.stat-card.accent-teal::before {
    background: linear-gradient(to right, #00d4aa, #06b6d4);
}

.stat-card.accent-amber::before {
    background: linear-gradient(to right, #f59e0b, #f97316);
}

.stat-card.accent-rose::before {
    background: linear-gradient(to right, #f43f5e, #ec4899);
}

/* Table row hover */
.table-row-hover tbody tr {
    transition: background 0.15s ease;
}

/* Status badges */
.badge-present {
    background: rgba(0, 212, 170, 0.15);
    color: #00d4aa;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.badge-absent {
    background: rgba(244, 63, 94, 0.15);
    color: #f87171;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-late {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-active {
    background: rgba(0, 212, 170, 0.15);
    color: #00d4aa;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.badge-inactive {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.badge-admin {
    background: rgba(108, 99, 255, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.badge-user {
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Modal backdrop blur */
.modal-backdrop {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Input focus glow */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

/* Overlay for mobile sidebar */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 40;
    backdrop-filter: blur(2px);
}

#sidebar-overlay.active {
    display: block;
}

/* Nav link active glow */
.nav-active {
    background: rgba(108, 99, 255, 0.15);
    color: #a78bfa;
    border-right: 3px solid #6c63ff;
}

/* Print styles */
@media print {

    #sidebar,
    .no-print {
        display: none !important;
    }

    #main-content {
        margin-left: 0 !important;
    }
}