/* ============================================
   StatusPage — Custom Styles
   ============================================ */

/* ---- Uptime Bar ---- */
.uptime-day {
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.uptime-bar-wrapper:hover .uptime-day {
    opacity: 0.4;
}

.uptime-bar-wrapper:hover .uptime-day:hover {
    opacity: 1;
    transform: scaleY(1.15);
    transform-origin: bottom;
}

/* ---- Status Dot Pulse ---- */
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.4; }
}

.status-dot-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ---- Status Banner Shimmer ---- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.status-banner-shimmer {
    position: relative;
    overflow: hidden;
}

.status-banner-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

/* ---- Toast Notifications ---- */
@keyframes toast-in {
    from { transform: translateY(-1rem); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes toast-out {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-1rem); opacity: 0; }
}

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

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

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

::-webkit-scrollbar-track {
    background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

/* ---- Smooth Transitions ---- */
.transition-height {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    overflow: hidden;
}

/* ---- Incident Timeline ---- */
.incident-timeline {
    position: relative;
}

.incident-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    bottom: 8px;
    width: 2px;
    background-color: #e5e7eb;
}

.incident-timeline-item {
    position: relative;
    padding-left: 28px;
}

.incident-timeline-dot {
    position: absolute;
    left: 2px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #e5e7eb;
}

/* ---- Admin Table ---- */
.admin-table {
    width: 100%;
}

.admin-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
    color: #374151;
}

.admin-table tbody tr:hover {
    background-color: #f9fafb;
}

/* ---- Print Styles ---- */
@media print {
    nav, footer, button, .no-print {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .uptime-day:hover {
        transform: none !important;
        opacity: 1 !important;
    }

    .uptime-bar-wrapper:hover .uptime-day {
        opacity: 1 !important;
    }
}

/* ---- Focus Styles ---- */
input:focus, select:focus, textarea:focus, button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ---- Badge Styles ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25rem;
}

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

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