/* DownDetector - System Monitor Style */

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

body {
    background: #1a1a1a;
    font-family: 'Courier New', 'Consolas', monospace;
    color: #00ff00;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: #000;
    border: 3px solid #00ff00;
    box-shadow: 0 0 20px rgba(0,255,0,0.5);
}

/* System Header */
.system-header {
    background: #003300;
    border-bottom: 2px solid #00ff00;
}

.header-bar {
    background: #004400;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #00ff00;
}

.system-name {
    font-weight: bold;
    color: #00ff00;
}

.system-time {
    color: #00ff00;
    font-weight: bold;
}

.status-bar {
    padding: 8px 15px;
    display: flex;
    gap: 25px;
    font-size: 0.9em;
}

.status-item {
    color: #00ff00;
}

.status-ok {
    color: #00ff00;
    font-weight: bold;
}

#cpuUsage {
    color: #00ff00;
}

/* Main Panel */
.main-panel {
    padding: 25px;
}

.panel-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #002200;
    border: 2px solid #00ff00;
}

.panel-header h1 {
    font-size: 2em;
    color: #00ff00;
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-shadow: 0 0 10px #00ff00;
}

.blink {
    color: #00ff00;
    animation: blink-animation 1s step-start infinite;
}

@keyframes blink-animation {
    50% {
        opacity: 0;
    }
}

.panel-subtitle {
    color: #00aa00;
    font-size: 1em;
}

/* Status Display */
.status-display {
    background: #001100;
    border: 3px solid #00ff00;
    margin-bottom: 25px;
}

.status-main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #002200;
    border-bottom: 2px solid #00ff00;
}

.status-icon {
    font-size: 4em;
    color: #00ff00;
    background: #003300;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #00ff00;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px #00ff00;
    }
    50% {
        box-shadow: 0 0 25px #00ff00, 0 0 40px #00ff00;
    }
}

.status-text {
    flex: 1;
}

.status-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #00ff00;
    margin-bottom: 5px;
}

.status-subtitle {
    color: #00aa00;
    font-size: 1.1em;
}

.status-meta {
    padding: 20px 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: #002200;
    border-left: 3px solid #00ff00;
}

.meta-label {
    color: #00aa00;
}

.meta-value {
    color: #00ff00;
    font-weight: bold;
}

/* Check Section */
.check-section {
    text-align: center;
    margin: 30px 0;
}

.check-button {
    background: #003300;
    color: #00ff00;
    font-size: 1.3em;
    font-weight: bold;
    padding: 15px 40px;
    border: 3px solid #00ff00;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.check-button:hover {
    background: #004400;
    box-shadow: 0 0 20px #00ff00;
}

.check-button:active {
    background: #00ff00;
    color: #000;
}

#checkResult {
    margin-top: 20px;
}

/* Services Grid */
.services-grid {
    margin: 30px 0;
}

.section-title {
    background: #003300;
    color: #00ff00;
    padding: 12px;
    font-size: 1.3em;
    border: 2px solid #00ff00;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 2px;
}

.service-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    padding: 12px;
    background: #001100;
    border: 1px solid #00ff00;
    margin-bottom: 8px;
    align-items: center;
}

.service-name {
    color: #00ff00;
    font-weight: bold;
}

.service-icon {
    margin-right: 8px;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.service-ping {
    text-align: right;
    color: #00aa00;
}

/* Uptime Section */
.uptime-section {
    margin: 30px 0;
}

.uptime-graph {
    background: #001100;
    border: 2px solid #00ff00;
    padding: 20px;
    margin-bottom: 10px;
}

.graph-bars {
    display: flex;
    gap: 2px;
    height: 100px;
    margin-bottom: 10px;
}

.graph-bar {
    flex: 1;
    background: #00ff00;
    border: 1px solid #003300;
    transition: all 0.3s;
}

.graph-bar:hover {
    box-shadow: 0 0 10px #00ff00;
}

.graph-labels {
    display: flex;
    justify-content: space-between;
    color: #00aa00;
    font-size: 0.9em;
}

.graph-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 10px;
    background: #002200;
    border: 1px solid #00ff00;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00ff00;
    font-size: 0.9em;
}

.legend-color {
    width: 20px;
    height: 12px;
    border: 1px solid #000;
}

/* System Info */
.system-info {
    margin: 30px 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background: #001100;
    border: 2px solid #00ff00;
}

.info-table tr {
    border-bottom: 1px solid #003300;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 12px;
}

.info-label {
    color: #00aa00;
    width: 40%;
}

.info-value {
    color: #00ff00;
    font-weight: bold;
}

/* Notice Box */
.notice-box {
    background: #2a2a00;
    border: 3px solid #ffff00;
    margin: 30px 0;
}

.notice-header {
    background: #3a3a00;
    color: #ffff00;
    padding: 12px;
    font-weight: bold;
    font-size: 1.2em;
    border-bottom: 2px solid #ffff00;
    text-align: center;
}

.notice-body {
    padding: 20px;
    color: #ffff00;
    line-height: 1.7;
}

.notice-body p {
    margin-bottom: 10px;
}

.notice-body b {
    color: #fff;
}

/* Stats Panel */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: #002200;
    border: 3px solid #00ff00;
    padding: 25px;
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
    margin-bottom: 10px;
}

.stat-label {
    color: #00aa00;
    font-size: 1em;
}

/* Footer */
.system-footer {
    background: #003300;
    border-top: 2px solid #00ff00;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #00aa00;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        border-width: 1px;
    }

    .main-panel {
        padding: 15px;
    }

    .panel-header h1 {
        font-size: 1.5em;
        letter-spacing: 1px;
    }

    .status-main {
        flex-direction: column;
        text-align: center;
    }

    .status-icon {
        width: 60px;
        height: 60px;
        font-size: 3em;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .service-ping {
        text-align: left;
    }

    .stats-panel {
        grid-template-columns: 1fr;
    }

    .system-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .status-bar {
        flex-direction: column;
        gap: 5px;
    }
}
