/* Ensure full-height layout for sticky footer */
html, body {
    height: 100%;
}
/* Font Face Definitions */
@font-face {
    font-family: 'ProximaNova-Light';
    src: url('/fonts/proximanova/proximanova-light-webfont.eot');
    src: url('/fonts/proximanova/proximanova-light-webfont.eot?iefix') format('eot'),
         url('/fonts/proximanova/proximanova-light-webfont.woff') format('woff'),
         url('/fonts/proximanova/proximanova-light-webfont.ttf') format('truetype'),
         url('/fonts/proximanova/proximanova-light-webfont.svg#webfontOdV5l44Z') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ProximaNova-Regular';
    src: url('/fonts/proximanova/proximanova-regular-webfont.eot');
    src: url('/fonts/proximanova/proximanova-regular-webfont.eot?iefix') format('eot'),
         url('/fonts/proximanova/proximanova-regular-webfont.woff') format('woff'),
         url('/fonts/proximanova/proximanova-regular-webfont.ttf') format('truetype'),
         url('/fonts/proximanova/proximanova-regular-webfont.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'UbuntuRegular';
    src: url('/fonts/ubuntu/Ubuntu-R-webfont.eot');
    src: url('/fonts/ubuntu/Ubuntu-R-webfont.eot?#iefix') format('embedded-opentype'),
         url('/fonts/ubuntu/Ubuntu-R-webfont.woff') format('woff'),
         url('/fonts/ubuntu/Ubuntu-R-webfont.ttf') format('truetype'),
         url('/fonts/ubuntu/Ubuntu-R-webfont.svg#UbuntuRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'UbuntuMonoRegular';
    src: url('/fonts/ubuntu-mono/UbuntuMono-R-webfont.eot');
    src: url('/fonts/ubuntu-mono/UbuntuMono-R-webfont.eot?#iefix') format('embedded-opentype'),
         url('/fonts/ubuntu-mono/UbuntuMono-R-webfont.woff') format('woff'),
         url('/fonts/ubuntu-mono/UbuntuMono-R-webfont.ttf') format('truetype'),
         url('/fonts/ubuntu-mono/UbuntuMono-R-webfont.svg#UbuntuMonoRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* Container width adjustments for Discord-like layout */
.container {
    max-width: 1200px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1100px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 1000px;
    }
}


/* Use Inter as fallback for ProximaNova */
:root {
    --primary-color: #000000;
    --success-color: #3BA55C;
    --warning-color: #FEE75C;
    --danger-color: #ED4245;
    --secondary-color: #4F545C;
    --light-color: #F2F3F5;
    --dark-color: #2F3136;
    --white: #FFFFFF;
    --text-muted: #72767D;
    --border-color: #E3E5E8;
    
    --font-family: 'ProximaNova-Regular', 'ProximaNova-Light', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #FAFAFA;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h3 {
    margin-top: 53px;
    color: #000;
    font-weight: bold;

}
/* Make main content area expand to push footer to bottom */
main {
    flex: 1;
}
/* Override Bootstrap primary color */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #4752C4;
    border-color: #4752C4;
}

/* Navigation */
.navbar {
    padding: 4rem 0;
    min-height: 140px;
    
}

.navbar-brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    justify-content: center;
}

.navbar-brand-center img {
    margin-bottom: 0.5rem;
}

.navbar-brand-center .fs-4 {
    color: white;
    font-weight: 600;
    font-size: 1.2rem !important;
    margin-top: -10px;
        
}

.navbar-brand {
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #7289DA);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.status-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-indicator {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.status-indicator.operational {
    color: var(--success-color);
}

.status-indicator.minor {
    color: var(--warning-color);
}

.status-indicator.major {
    color: var(--danger-color);
}

.status-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

/* Metric Cards */
.metric-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    text-align: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.metric-card h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.metric-card small {
    font-weight: 500;
}

/* Status Indicator Section */
.status-indicator-section {
    margin-bottom: 2rem;
}

.status-badge {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    border: none;
}

.status-operational {
    background-color: #3BA55C;
    color: white;
}

.status-degraded {
    background-color: #ffc107;
    color: #856404;
}

/* Incident Cards */
.incident-card {
    background: transparent;
    border-radius: 0;
    padding: 1.0rem 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    transition: none;
}

.incident-card:hover {
    transform: none;
    box-shadow: none;
}

.day-section:last-child .incident-card:last-child {
    border-bottom: none;
}

.incident-header {
    border-bottom: none;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.incident-date {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.1rem;
}

.incident-subject {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.incident-impact {
    margin-bottom: 1rem;
}

.incident-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.incident-description {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Timeline */
.incident-timeline {
    margin-bottom: 1rem;
    position: relative;
}

.incident-timeline h6 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-item {
    display: flex;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background-color: #72767D;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 2;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    top: 1.5rem;
    width: 2px;
    height: calc(100% + 0.5rem);
    background-color: #E3E5E8;
    z-index: 1;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-time {
    min-width: 140px;
    margin-right: 1rem;
}

.timeline-content {
    flex: 1;
    color: var(--dark-color);
}

.incident-duration {
    padding-top: 0.5rem;
    border-top: none;
}

/* Badges */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: var(--dark-color) !important;
}

.badge.bg-info {
    background-color: var(--primary-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-info {
    background-color: rgba(88, 101, 242, 0.1);
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
    color: var(--light-color);
}

footer h5 {
    color: white;
    font-weight: 600;
}

/* Error Page */
.error-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* Status Notice Container */
.status-notice {
    padding: 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    width: 100%;
    font-size: 1.1rem;
    text-align: center;
}

.status-notice.operational {
    background-color: #44bc6a !important;
    color: white !important;
}

.status-notice.degraded {
    background-color: #ffc107 !important;
    color: #856404 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    .metric-value {
        font-size: 1.5rem;
    }
    
    .incident-card {
        padding: 1rem;
    }
    
    .timeline-item {
        flex-direction: column;
        padding-left: 0;
        margin-bottom: 1rem;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-time {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.text-md-end A {
    color: var(--light-color);
    text-decoration: none;
}

/* 90 Day Uptime Bar Styles */
.uptime-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.uptime-container {
    position: relative;
}

.uptime-bar-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.uptime-bar {
    display: flex;
    gap: 1px;
    height: 30px;
    background: #e9ecef;
    border-radius: 4px;
    padding: 2px;
    overflow: hidden;
}

.uptime-day {
    flex: 1;
    min-width: 3px;
    height: 100%;
    border-radius: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.uptime-day.operational {
    background-color: #28a745;
}

.uptime-day.minor {
    background-color: #ffc107;
}

.uptime-day.major {
    background-color: #dc3545;
}

.uptime-day:hover {
    transform: scaleY(1.1);
    z-index: 1;
    position: relative;
}

.uptime-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.uptime-legend .uptime-bar-item {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    vertical-align: middle;
}

.uptime-legend .uptime-bar-item.operational {
    background-color: #28a745;
}

.uptime-legend .uptime-bar-item.minor {
    background-color: #ffc107;
}

.uptime-legend .uptime-bar-item.major {
    background-color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .uptime-section {
        padding: 15px;
    }
    
    .uptime-bar {
        height: 25px;
    }
    
    .uptime-legend {
        margin-top: 10px;
    }
    
    .uptime-legend small {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .uptime-legend {
        text-align: center;
    }
    
    .uptime-legend small {
        display: block;
        margin-bottom: 5px;
    }
}