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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: #0f172a;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.description {
    font-size: 0.75rem;
    color: #64748b;
    font-style: italic;
}

/* Status Card */
.status-card {
    background: #1e293b;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #334155;
}

.status-card.success {
    border-left: 3px solid #10b981;
}

.status-card.error {
    border-left: 3px solid #f87171;
}

/* Status Header */
.status-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.status-icon {
    font-size: 1.25rem;
}

.status-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
}

.status-card.success .status-title {
    color: #34d399;
}

.status-card.error .status-title {
    color: #fca5a5;
}

/* Status Message */
.status-message {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #334155;
    border-radius: 6px;
    border-left: 3px solid #64748b;
}

.status-message p {
    font-size: 0.875rem;
    margin: 0;
    color: #cbd5e1;
}

/* Metrics Grid */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.metric {
    background: #334155;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #475569;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.metric-value.success {
    color: #34d399;
}

/* Ping Performance Classes */
.ping-time.excellent {
    color: #10b981;
}

.ping-time.good {
    color: #f59e0b;
}

.ping-time.poor {
    color: #ef4444;
}

/* Action Button */
.action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #475569;
}

.btn {
    padding: 0.5rem 1rem;
    border: 1px solid #475569;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #334155;
    color: #cbd5e1;
}

.btn:hover {
    background: #3f4c5e;
    border-color: #64748b;
}

/* Details Section */
.details-section {
    margin-top: 1rem;
    border: 1px solid #475569;
    border-radius: 6px;
    overflow: hidden;
}

.details-section summary {
    padding: 0.75rem;
    background: #334155;
    cursor: pointer;
    font-weight: 500;
    color: #cbd5e1;
    font-size: 0.875rem;
}

.details-section summary:hover {
    background: #3f4c5e;
}

.details-section summary::marker {
    display: none;
}

.details-section summary::after {
    content: '▼';
    float: right;
    transition: transform 0.2s ease;
    color: #94a3b8;
    font-size: 0.75rem;
}

.details-section[open] summary::after {
    transform: rotate(-180deg);
}

.details-content {
    padding: 0.75rem;
    background: #1e293b;
}

.detail-item {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #334155;
    border-radius: 4px;
    font-size: 0.75rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    display: block;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 0.125rem;
}

.detail-item span {
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
    word-break: break-all;
    font-size: 0.6875rem;
}

/* Info Section */
.info-section {
    background: #1e293b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #334155;
}

.info-section h3 {
    color: #f1f5f9;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #475569;
    padding-bottom: 0.25rem;
}

.info-section ul {
    list-style: none;
}

.info-section li {
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.info-section li:last-child {
    border-bottom: none;
}

.info-section strong {
    color: #f1f5f9;
    font-weight: 500;
}

/* Footer */
.footer {
    text-align: center;
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 1.5rem;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    color: #cbd5e1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .metrics {
        grid-template-columns: 1fr;
    }
}

/* Focus States */
.btn:focus,
.details-section summary:focus {
    outline: 2px solid #64748b;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .status-card,
    .info-section {
        border: 1px solid #ccc;
        background: white;
    }
    
    h1 {
        color: black;
    }
} 