/* Shared dashboard styling for System Admin Console */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.nav-item {
    color: #64748b;
    font-size: 0.875rem;
}

.nav-item:hover {
    background-color: #f8fafc;
    color: #0A2342;
}

.nav-item.active {
    background-color: #0A2342;
    color: white;
}

.nav-item.active i {
    color: white;
}

.mobile-nav-item {
    color: #94a3b8;
    transition: all 0.2s;
}

.mobile-nav-item.active {
    color: #0A2342;
}

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

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.table-row:hover {
    background-color: #f8fafc;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background-color: #f1f5f9;
    color: #475569;
}

.badge-brand {
    background-color: #0A2342;
    color: white;
}

.badge-purple {
    background-color: #ede9fe;
    color: #6d28d9;
}

.badge-slate {
    background-color: #e2e8f0;
    color: #334155;
}

.log-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.log-critical {
    background: #7f1d1d;
    color: white;
}

.log-error {
    background: #fee2e2;
    color: #b91c1c;
}

.log-warning {
    background: #fef3c7;
    color: #b45309;
}

.log-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.toast-enter {
    animation: slideIn 0.3s ease-out;
}

.toast-exit {
    animation: slideOut 0.3s ease-in;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes modalIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#modalContent {
    animation: modalIn 0.2s ease-out;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 250px;
    min-height: 250px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.progress-bar {
    transition: width 0.5s ease;
}

.responsive-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.log-row code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (max-width: 768px) {
    .chart-container {
        height: 220px;
        min-height: 220px;
    }
}
