* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #3291B6;
    --primary-dark: #2a7a9a;
    --primary-light: #e8f4fa;
    --secondary-color: #FF7F32;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-radius: 6px;
    --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --success-color: #8befa2;
    --error-color: #dc3545;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--dark-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Top controls*/
.top-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
    padding: 15px 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--secondary-color);
}

.controls-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.api-docs-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(50, 145, 182, 0.15);
    white-space: nowrap;
}

.api-docs-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 145, 182, 0.3);
}

.language-selector {
    position: relative;
}

.lang-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    font-weight: 600;
}

.lang-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 8px;
    min-width: 140px;
    display: none;
    overflow: hidden;
    z-index: 100;
    border: 1px solid #e2e8f0;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    padding: 10px 16px;
    cursor: pointer;
    color: var(--dark-color);
    border-bottom: 1px solid #f8fafc;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: #f8fafc;
}

.lang-option.active {
    background: var(--primary-color);
    color: white;
}

.lang-flag {
    font-size: 0.9rem;
}

/* Main container */
.main-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid #e2e8f0;
}

.header {
    background: #236a87;
    padding: 25px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-color);
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.header-content {
    max-width: 500px;
    margin: 0 auto;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
}

.content {
    padding: 20px;
}

/* stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--secondary-color);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: #f1f5f9;
    box-shadow: var(--box-shadow);
}

.stat-icon {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 0.7rem;
    color: var(--gray-color);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
}

.uptime-display {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    font-size: 1.2rem;
}

/* Updated server status - no border left */
.server-status {
    background: linear-gradient(to right, rgba(255, 127, 50, 0.04), rgba(50, 145, 182, 0.04));
    border-radius: var(--border-radius);
    padding: 18px;
    text-align: center;
    margin-bottom: 20px;
}

.server-status h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.server-status p {
    color: #555;
    line-height: 1.4;
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Compact action buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    flex: 1;
    max-width: 180px;
}

.action-btn:hover {
    background: #e66a22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 127, 50, 0.3);
}

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

.action-btn.secondary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(50, 145, 182, 0.3);
}

.footer {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    color: var(--gray-color);
    font-size: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.time-display {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* No scroll design */
html,
body {
    height: 100%;
    overflow: hidden;
}

/* Responsive design */
@media (max-width: 700px) {
    .main-container {
        max-width: 95%;
    }

    .top-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .brand-logo {
        justify-content: center;
    }

    .controls-wrapper {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .content {
        padding: 18px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .controls-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .api-docs-btn,
    .lang-btn {
        width: 100%;
        justify-content: center;
    }

    .lang-dropdown {
        width: 100%;
        right: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    .status-badge {
        position: relative;
        top: 0;
        left: 0;
        justify-content: center;
        margin: 0 auto 12px auto;
        width: fit-content;
    }
}

@media (max-height: 700px) {
    .main-container {
        transform: scale(0.95);
    }

    .top-controls {
        transform: scale(0.95);
    }
}

@media (max-height: 600px) {
    .main-container {
        transform: scale(0.9);
    }

    .top-controls {
        transform: scale(0.9);
    }
}
