:root {
    --my-bg-color: #001524;
    --my-text-color: #ffffff;
    --my-header-bg: rgba(2, 43, 73, 0.27);
    --my-accent: #15616D;
    --my-card-bg: #022b4945;
    --my-card-border: rgba(255, 255, 255, 0.05);
    --my-muted-text: #8892b0;
    --my-nav-mobile-bg: #001524;
}

[data-theme="light"] {
    --my-bg-color: #f8fafc;
    --my-text-color: #0f172a;
    --my-header-bg: rgba(255, 255, 255, 0.8);
    --my-card-bg: #ffffff;
    --my-card-border: rgba(0, 0, 0, 0.1);
    --my-muted-text: #475569;
    --my-nav-mobile-bg: #ffffff;
}
/* GENERAL STYLES */

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--my-bg-color);
    color: var(--my-text-color);
    padding: 0;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}
.container {
    width: 90%;
    margin: 0 auto;
}
.muted{
    color: var(--my-muted-text);
    margin-top: 5px;
}
.section-title{
    margin-bottom: -20px;
}
.return-link{
    display: inline-block;
    margin: 30px 0;
    text-decoration: none;
    color: var(--my-accent);
    font-weight: 600;
}
/* Navbar Styles */
.logo {
    display: flex;
    align-items: baseline;
    margin: 0;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--my-text-color);
    font-weight: 700;
}

.logo span {
    display: inline-block;
    position: relative;
    width: 10px;
    height: 10px;
    margin: 0 5px;
}

.logo span::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--my-accent);
    border-radius: 50%;
}

.navbar-toggle {
    display: none;
}

.navbar {
    padding: 1.5rem 5%;
    background: var(--my-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--my-card-border);
}
.actions {
    position: fixed;
    top: 15px;
    right: 90px;
}

.actions button {
    all: unset;
    color: var(--my-text-color);
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    border-radius: 4px;
}

.actions button img {
    width: 25px;
}

[data-theme="light"] .actions button img {
    filter: invert(1) brightness(0.2);
}


/* STATUS SECTION */

.general-system{
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px auto;
    margin-top: 10px;
    border: 1px solid var(--my-card-border);
    padding: 50px;
    border-radius: 10px;
    background-color: var(--my-card-bg);
}

.status {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.status.online {
    background-color: var(--my-accent);
}
.status.offline {
    background-color: #F44336;
}
.status.degraded {
    background-color: #FF9800;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(21, 97, 109, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

@media (max-width: 600px) {
    .status{ display: none;}  
}
.online{
    color: var(--my-accent);
}
.degraded{
    color: #FF9800;
}
/* OVERALL SECTION */
.overall {
    margin: 40px auto;
    border: 1px solid var(--my-card-border);
    padding: 30px;
    border-radius: 10px;
    background-color: var(--my-card-bg);
}
.overall-stats{
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 10px;
}
.overall-card{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.overall-uptime{
    font-size: 2rem;
    font-weight: 700;
    color: var(--my-accent);
}
@media (max-width: 600px) {
    .overall-stats{
        flex-direction: column;
        gap: 20px;
    }
}

/* SERVICES SECTION */
.services {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px auto;
    border: 1px solid var(--my-card-border);
    padding: 30px;
    border-radius: 10px;
    background-color: var(--my-card-bg);
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--my-card-border);
}

.service-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}
.service-header a{
    text-decoration: none;
    color: var(--my-text-color);
}
.service-header a:hover{
    color: var(--my-accent);
    text-decoration: underline;
}

.service-desc {
    font-size: 0.85rem;
    color: var(--my-muted-text);
}

.badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge.online {
    background: rgba(21, 97, 109, 0.2);
    color: var(--my-accent);
}

.uptime-wrapper {
    margin-top: 10px;
}

.uptime-bar {
    display: flex;
    gap: 2px;
    height: 35px;
    align-items: stretch;
}

.segment {
    flex: 1;
    background: var(--my-accent);
    border-radius: 2px;
    transition: opacity 0.2s, transform 0.2s;
}

.segment:hover {
    transform: scaleY(1.2);
    filter: brightness(1.2);
}

.segment.down {
    background: #F44336;
}
.segment.none{
    background: var(--my-muted-text);
    opacity: 0.3;
}

.uptime-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--my-muted-text);
    margin-top: 8px;
    padding: 0 2px;
}

@media (max-width: 600px) {
    .service-card {
        padding-bottom: 15px;
    }
    .uptime-bar {
        height: 25px;
    }
}
/*RESPONSE TIME CHART */
.chart-section {
    background: var(--my-card-bg);
    border: 1px solid var(--my-card-border);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.chart-section canvas {
    max-height: 400px;
}
#responseTimeChart{
    width: 100% !important;
}
