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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
}

.status-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.status-indicator {
    margin: 30px 0;
}

.status-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s ease-out infinite;
}

.status-dot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-text {
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.status-reason {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4a5568;
    display: none;
    text-align: left;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.status-reason.visible {
    display: block;
}

/* Status States */
.status-up .status-dot {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.status-up .pulse-ring {
    border: 3px solid #22c55e;
}

.status-up .status-text {
    color: #22c55e;
}

.status-up .status-reason {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.status-down .status-dot {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.status-down .pulse-ring {
    border: 3px solid #ef4444;
}

.status-down .status-text {
    color: #ef4444;
}

.status-down .status-reason {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.status-partial .status-dot {
    background: linear-gradient(135deg, #fb923c, #f97316);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.status-partial .pulse-ring {
    border: 3px solid #f97316;
}

.status-partial .status-text {
    color: #f97316;
}

.status-partial .status-reason {
    border-left-color: #f97316;
    background: rgba(249, 115, 22, 0.08);
}

.status-checking .status-dot {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.status-checking .pulse-ring {
    border: 3px solid #f59e0b;
}

.status-checking .status-text {
    color: #f59e0b;
}

.status-checking .status-reason {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(0.8);
    }
    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

.info-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

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

.info-label {
    color: #64748b;
    font-weight: 500;
}

.info-value {
    color: #1e293b;
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .status-card {
        padding: 30px 20px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .status-circle {
        width: 100px;
        height: 100px;
    }
    
    .status-dot {
        width: 70px;
        height: 70px;
        font-size: 0.8rem;
    }
    
    .status-text {
        font-size: 1.2rem;
    }
    
    .status-reason {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}