body {
    background-color: #0a0a0a;
    background-image: url('../images/bg1.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: #e0e0e0;
    font-family: 'Lato', sans-serif;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Стилі для форм */
.login-page, .register-page {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.login-form, .register-form {
    padding: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ffa500;
}

.form-control {
    width: 100%;
    padding: 10px;
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid #444;
    color: #fff;
    border-radius: 3px;
}

.form-control:focus {
    border-color: #ffa500;
    outline: none;
}

.form-btn {
    background-color: #ffa500;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.form-btn:hover {
    background-color: #ff8c00;
}

.form-text {
    color: #aaa;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Сповіщення */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.7);
    border: 1px solid #dc3545;
    color: #fff;
}

.alert-success {
    background: rgba(40, 167, 69, 0.7);
    border: 1px solid #28a745;
    color: #fff;
}

/* Новини */
.news-section {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.news-item {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 0 5px rgba(255, 165, 0, 0.2);
}

.news-item h3 {
    color: #ffa500;
    margin-top: 0;
}

.news-date {
    color: #aaa;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.read-more {
    color: #ffa500;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.read-more:hover {
    text-decoration: underline;
}

/* ✅ Загальна сума онлайну */
.total-online-display {
    margin-bottom: 30px;
    text-align: center;
}

.total-online-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.total-online-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.total-online-count {
    color: #00ff88;
    font-size: 48px;
    font-weight: 800;
    font-family: 'RussoOne', sans-serif;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
        transform: scale(1);
    }
    to {
        text-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
        transform: scale(1.05);
    }
}

/* Статуси серверів */
.server-status-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.server-status {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 3px;
    padding: 15px;
    width: 48%;
    text-align: center;
}

.server-status h3 {
    margin-top: 0;
    color: #ffa500;
}

.online {
    color: #28a745;
    font-weight: bold;
}

.offline {
    color: #dc3545;
    font-weight: bold;
}

/* Меню */
.menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 5px 15px;
    margin: 0 5px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

/* Кнопки */
.login-buttons {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.btn-login, .btn-register {
    background-color: #ffa500;
    color: #000;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-login:hover, .btn-register:hover {
    background-color: #ff8c00;
}
