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

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--gray-800);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    text-align: center;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title i {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-300);
}

.service-card.online::before {
    background: var(--success-color);
}

.service-card.offline::before {
    background: var(--danger-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.service-icon {
    width: 60px;
    height: 60px;
    /* background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    /* font-size: 1.5rem; */
}

.service-icon-noimg {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}
.status-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.status-indicator.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-indicator.offline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.service-content {
    margin-bottom: 20px;
}

.service-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.service-description {
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 15px;
}

.service-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.meta-item i {
    width: 16px;
    color: var(--primary-color);
}

.service-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.service-actions .btn {
    width: 100%;
    justify-content: center;
}

.service-actions .badge {
    align-self: center;
}
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

.loading-state i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.loading-state p {
    font-size: 1rem;
    color: var(--gray-600);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--gray-700);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 5px;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.auth-overlay.hidden {
    display: none;
}

.auth-modal {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 24px 28px;
    width: 100%;
    max-width: 360px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.auth-modal h2 {
    margin-bottom: 6px;
    font-size: 1.4rem;
    color: var(--gray-900);
}

.auth-modal p {
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    font-size: 0.9rem;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.auth-error {
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--danger-color);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .stats {
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }
}