* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.error-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: pulse 2s infinite;
}

.error-icon svg {
    width: 40px;
    height: 40px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.error-message {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
}

.status-info {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.925rem;
}

.status-value {
    font-weight: 600;
    font-size: 0.925rem;
}

.status-value.offline {
    color: #e53e3e;
    background: #fed7d7;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 500;
    font-size: 0.925rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.btn-primary svg,
.btn-secondary svg {
    width: 16px;
    height: 16px;
}

.help-text {
    color: #718096;
    font-size: 0.875rem;
    line-height: 1.5;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .error-content {
        padding: 2rem 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .error-icon {
        width: 60px;
        height: 60px;
    }
    
    .error-icon svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .status-value.offline {
        align-self: flex-start;
    }
}

/* Loading animation for buttons */
.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.98);
}

/* Mobile Landscape Optimization */
@media screen and (max-height: 600px) and (orientation: landscape) {
    body {
        overflow-y: auto;
        padding: 1rem 0;
    }
    
    .container {
        padding: 1rem;
        max-width: 600px;
    }
    
    .error-content {
        padding: 1.5rem 2rem;
        border-radius: 16px;
    }
    
    .error-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .error-icon svg {
        width: 24px;
        height: 24px;
    }
    
    h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .error-message {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }
    
    .status-info {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .status-item {
        margin-bottom: 0.5rem;
    }
    
    .actions {
        margin-bottom: 1rem;
        gap: 0.75rem;
        flex-direction: row;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        min-width: 100px;
    }
    
    .help-text {
        font-size: 0.8rem;
    }
}

/* Small Mobile Landscape (very short screens) */
@media screen and (max-height: 450px) and (orientation: landscape) {
    .error-content {
        padding: 1rem 1.5rem;
    }
    
    .error-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }
    
    .error-icon svg {
        width: 20px;
        height: 20px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .error-message {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .status-info {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .actions {
        margin-bottom: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .error-content,
    .error-icon,
    .background-pattern {
        animation: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
} 