:root {
    --primary-color: #2196F3;
    --secondary-color: #1976D2;
    --background-color: #f5f6fa;
    --card-background: #ffffff;
    --text-color: #2c3e50;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--card-background);
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.header h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5em;
}

.network-status {
    margin-top: 20px;
}

#statusText {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 500;
    margin-bottom: 15px;
}

.mode-switch {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-switch button {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background-color: #e3f2fd;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.mode-switch button.active {
    background-color: var(--primary-color);
    color: white;
}

.mode-switch button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.service-card {
    background: var(--card-background);
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 100px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow-color);
}

.service-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.service-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    object-fit: contain;
    transition: transform 0.3s ease;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 1em;
}

.service-card p {
    color: #666;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .header {
        margin-bottom: 30px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .services {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .service-card {
        padding: 10px 8px;
    }
    
    .service-card img {
        width: 40px;
        height: 40px;
    }
    
    .service-card h3 {
        font-size: 0.9em;
    }
} 

.service-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
}

.service-card img[src$="default.png"] {
    opacity: 0.5;
    filter: grayscale(100%);
}

.service-card img.error {
    opacity: 0.5;
    filter: grayscale(100%);
}