:root {
    --online: #10B981;
    --offline: #EF4444;
    --degraded: #F59E0B;
    --bg: #0F0F0F;
    --card: #1A1A1A;
    --text: #F3F4F6;
    --muted: #9CA3AF;
    --border: #27272A;
    --blue: #3B82F6;
    --blue-hover: #2563EB;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.5;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand-logo {
    height: 40px;
    width: auto;
}

h1 {
    text-align: center;
    color: var(--text);
    margin: 0;
    font-weight: 600;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    min-height: 300px;
}

.service-card {
    background: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

.service-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.service-card:hover .service-emoji {
    transform: scale(1.1) rotate(5deg);
}

.service-name {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.status-online {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--online);
}

.status-offline {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--offline);
    animation: shake 0.5s ease-in-out;
}

.status-icon {
    font-size: 1rem;
}

.last-checked {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-3px); }
    40%, 80% { transform: translateX(3px); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.last-updated {
    font-size: 0.875rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn {
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.refresh-btn:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
}

.overall-status {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.status-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.online-count {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--online);
}

.offline-count {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--offline);
}

.emoji-animation {
    animation: float 3s ease-in-out infinite;
}

.uptime-indicator {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.uptime-bar {
    height: 100%;
    background: var(--online);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.offline .uptime-bar {
    background: var(--offline);
}

.status-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-online {
    background: var(--online);
}

.legend-offline {
    background: var(--offline);
}

.loading-skeleton {
    position: relative;
    overflow: hidden;
}

.loading-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.03) 50%, 
        rgba(255,255,255,0) 100%);
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Add these new animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Enhanced refresh button styles */
.refresh-btn.refreshing {
    animation: pulse 1s infinite;
}

.refresh-btn .refresh-icon {
    transition: transform 0.3s ease;
}

.refresh-btn.refreshing .refresh-icon {
    animation: spin 1s linear infinite;
}

/* Enhanced skeleton loading */
.skeleton-emoji {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
    background: var(--border);
    border-radius: 50%;
}

.skeleton-text {
    height: 16px;
    background: var(--border);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-badge {
    height: 24px;
    width: 80px;
    background: var(--border);
    border-radius: 9999px;
    margin: 0 auto 0.5rem;
}

.skeleton-uptime {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 0.75rem;
}

.skeleton-small-text {
    height: 12px;
    width: 80px;
    background: var(--border);
    border-radius: 4px;
    margin: 0.5rem auto 0;
}

/* Fade in animation for cards */
.service-card {
    animation: fadeIn 0.5s ease-out;
}

/* Initial loading state */
.initial-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    flex-direction: column;
    gap: 1rem;
}

.initial-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--blue);
    animation: spin 1s linear infinite;
}

.initial-loading-text {
    color: var(--text);
    font-size: 1.2rem;
}