/* Общие стили для тела и фона */
body {
    font-family: 'Roboto', sans-serif;
    font-size: 14px !important;
    color: #333;
    background-color: #fafafa; /* Светлый мягкий фон */
    margin: 0;
    padding: 0;
}

/* Полное покрытие фона, если нужен акцент */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fafafa;
    z-index: -1;
}

/* Основной контейнер страницы */
.page {
    max-width: 1200px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

/* Заголовки */
.content-title {
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 1em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #e0e0e0;
    color: #222;
}

/* Шапка сайта */
header {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    padding: 15px 30px;
    border-radius: 12px 12px 8px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

header .btn-logout,
header .btn-lk {
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}

header .btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
header .btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

header .btn-lk {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
header .btn-lk:hover {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

header .nav-link {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
header .nav-link:hover {
    color: #ffd700;
}

/* Контент внутри страницы */
.main-content {
    display: flex;
    flex-direction: column;
}

/* Блок Top Servers */
.top-servers {
    background: #fff;
    padding: 1em;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}
.top-servers .title h3 {
    font-size: 1.6em;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #222;
}

/* Информация о сервере */
.top-servers-info {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    padding: 15px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.hostname a {
    display: block;
    font-weight: 700;
    font-size: 1.2em;
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
}
.hostname a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffd700;
}

.info {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.players, .address {
    background: rgba(255,255,255,0.2);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}
.address {
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

/* Карта изображения */
.image-map img {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    display: block;
}

/* Название карты */
.name-map {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.4);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}

/* Приветственный блок */
.top-welcome-text {
    background: #fff;
    padding: 1em;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}
.top-welcome-text h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #222;
}
.btn.add-server {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}
.btn.add-server:hover {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Таблица серверов */
.servers-list {
    background: #fff;
    padding: 1em;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}
.servers-list .title h3 {
    font-size: 1.6em;
    margin: 0 0 10px 0;
}
.table-dark thead {
    background: #f0f0f0;
}
.table-dark thead tr th {
    padding: 0.8em;
    font-weight: 600;
}
.table-dark td {
    padding: 0.8em;
}
.table-dark tr {
    border-bottom: 1px solid #e0e0e0;
}
.address, .players {
    background: #fafafa;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
}
.hostname {
    color: #007bff;
    font-weight: 700;
    text-decoration: none;
}
.hostname:hover {
    opacity: 0.8;
}

/* Иконки и статус */
.status-online {
    background: #d0f0d0;
    color: #222;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}
.status-offline {
    background: #f0d0d0;
    color: #222;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Подвал */
.footer {
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    padding: 15px 30px;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    color: #555;
}

/* Кнопки и интерактивные элементы */
button,
a {
    transition: all 0.3s;
}
button:hover,
a:hover {
    opacity: 0.8;
}

/* Стиль для модальных окон и loader */
.modal-preloader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* Кнопка копирования */
.copy-btn {
    margin-left: 5px;
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    background: #e0e0e0;
    color: #222;
    cursor: pointer;
    transition: background 0.3s;
}
.copy-btn:hover {
    background: #ccc;
}

/* Адаптивность */
@media(max-width: 768px) {
    /* Мобильные стили */
    header {
        flex-direction: column;
        align-items: flex-start;
    }
}