/* Sevenpion Brand Identity */
:root {
    --primary: #015196;
    --secondary: #44c0ec;
    --dark: #1f2029;
    --gray-bg: #f8fafc;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--gray-bg);
    color: var(--dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #013d71;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- UTILITIES --- */
.glass { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.3); }

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.05);
}

/* --- ACCESSIBILITY MODE --- */
.high-contrast {
    --primary: #000000 !important;
    --secondary: #FFFF00 !important;
    --dark: #000000 !important;
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

.high-contrast .bg-white, 
.high-contrast .bg-gray-50,
.high-contrast nav,
.high-contrast aside {
    background-color: #1a1a1a !important;
    border-color: #FFFF00 !important;
}

.high-contrast p, 
.high-contrast span,
.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast table td,
.high-contrast table th {
    color: #FFFFFF !important;
}

.high-contrast .text-primary, 
.high-contrast .text-secondary,
.high-contrast .text-gray-400 {
    color: #FFFF00 !important;
}

.high-contrast button {
    background-color: #FFFF00 !important;
    color: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

.high-contrast .menu-item:hover,
.high-contrast .menu-item.active {
    background-color: #333333 !important;
    border: 1px solid #FFFF00 !important;
}

/* Sidebar Active State */
.menu-active {
    background-color: rgba(68, 192, 236, 0.1);
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Live Score Indicator */
.live-pulse {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 10px 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ID Card Styles */
.id-card-preview {
    width: 350px;
    height: 500px;
    background: white;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.id-card-header {
    height: 150px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Table Utilities */
.table-compact th, .table-compact td {
    padding: 0.75rem 1rem;
}

/* Print Overrides */
@media print {
    body * { visibility: hidden; }
    #id-card-print, #id-card-print * { visibility: visible; }
    #id-card-print { position: absolute; left: 0; top: 0; margin: 0; box-shadow: none; }
}
