/* DilijenzStatus Custom Styles - Launch-themed Design */

:root {
    --primary-blue: #0d6efd;
    --secondary-blue: #6c757d;
    --success-green: #198754;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Status Banner */
.status-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0a58ca 100%);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.status-banner.bg-success {
    background: linear-gradient(135deg, var(--success-green) 0%, #146c43 100%);
}

.status-banner.bg-warning {
    background: linear-gradient(135deg, var(--warning-yellow) 0%, #e6a700 100%);
    color: #000 !important;
}

.status-banner.bg-danger {
    background: linear-gradient(135deg, var(--danger-red) 0%, #b02a37 100%);
}

.status-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    filter: brightness(0) invert(1);  /* Make logo white for dark navbar */
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* Status Indicators */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 8px;
}

/* Component Status Cards */
.component-status {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary-blue);
    border-radius: 0 8px 8px 0;
}

.component-status.operational {
    border-left-color: var(--success-green);
}

.component-status.degraded {
    border-left-color: var(--warning-yellow);
}

.component-status.major_outage {
    border-left-color: var(--danger-red);
}

/* Incident Cards */
.incident-card {
    border-left: 4px solid var(--danger-red);
    margin-bottom: 1rem;
}

.incident-card.resolved {
    border-left-color: var(--success-green);
    opacity: 0.8;
}

/* Timeline for incident updates */
.incident-timeline {
    position: relative;
    padding-left: 2rem;
}

.incident-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-blue);
}

/* Admin Dashboard */
.admin-stats .card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0a58ca 100%);
    color: white;
    border: none;
}

.admin-stats .card-body {
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-banner h1 {
        font-size: 1.8rem;
    }
    
    .status-banner .container {
        text-align: center;
    }
    
    .d-md-flex {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Loading States */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Launch Theme Elements */
.rocket-icon {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0a58ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Status Page Specific */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.status-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Footer */
footer {
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .status-banner {
        background: #f8f9fa !important;
        color: #333 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here */
}

/* Uptime Chart */
.uptime-chart-container {
    overflow: hidden;
    border-radius: 4px;
}

.uptime-chart {
    display: flex;
    gap: 1px;
    height: 40px;
    background-color: #f3f4f6;
}

.uptime-bar {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.uptime-bar:hover {
    transform: scaleY(1.2);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
