/* ─── A0T Dashboard Custom Styles ─────────────────────────────── */

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Animations */
@keyframes slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-10px); }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@keyframes skeleton {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-slide-in { animation: slide-in 0.3s ease-out; }
.animate-fade-out { animation: fade-out 0.3s ease-out forwards; }
.animate-pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Card hover effect */
.card-hover {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Glass card */
.glass {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(51, 65, 85, 0.5);
}

/* Log viewer */
.log-line {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 11px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}
.log-line:nth-child(odd) { background: rgba(255,255,255,0.02); }

/* Sidebar */
.sidebar-link {
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}
.sidebar-link:hover {
    background: rgba(6, 182, 212, 0.08);
    border-left-color: rgba(6, 182, 212, 0.3);
}
.sidebar-link.active {
    background: rgba(6, 182, 212, 0.12);
    border-left-color: #06b6d4;
    color: #06b6d4;
}

/* Mobile bottom nav */
.bottom-nav-item {
    transition: color 0.15s ease;
}
.bottom-nav-item.active {
    color: #06b6d4;
}

/* Table */
.table-row:hover {
    background: rgba(6, 182, 212, 0.04);
}

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

/* Badge pulse */
.badge-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Chart containers */
.chart-container {
    position: relative;
    width: 100%;
}

/* Light mode overrides */
.light .glass {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(226, 232, 240, 0.8);
}
.light .log-line:nth-child(odd) {
    background: rgba(0,0,0,0.02);
}
