/* === Общий стиль страницы === */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0e0e10;
    color: #ddd;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* === Навигационные табы === */
.tabs {
    background: #1b1b1e;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-bottom: 1px solid #2c2c30;
}

.tabs button {
    background: #2d2d30;
    color: #eee;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s ease;
}

.tabs button:hover {
    background: #3b3b3f;
}

/* === Контент вкладок === */
.tab-content {
    padding: 20px;
}

/* === Новости === */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card {
    display: flex;
    background: #1e1e22;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

.news-img {
    width: 180px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    background: #111;
}

.news-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-content h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.news-content h3 a {
    color: #9ddcff;
    text-decoration: none;
}

.news-content h3 a:hover {
    text-decoration: underline;
}

.news-date {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 8px;
}

/* === Блоки состояния === */
.states-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.state-group {
    background: #1e1e22;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 3px solid #2a2a2d;
    transition: border-color 0.2s;
}

.state-group:hover {
    border-color: #4fa3ff;
}

.state-group h3 {
    margin-top: 0;
    color: #9ddcff;
    font-size: 17px;
}

.state-group ul {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
}

.state-group li {
    margin: 4px 0;
    font-size: 14px;
}

.state-group li.ok {
    color: #9ef29e;
}

.state-group li.fail {
    color: #ff7b7b;
}

.state-group .error {
    color: #bbb;
    font-size: 13px;
}

/* === Общие элементы === */
a {
    color: #9ddcff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Loader / "Загрузка..." === */
#tab-content {
    min-height: 300px;
    display: block;
}

/* === Адаптивность === */
@media (max-width: 700px) {
    .news-card {
        flex-direction: column;
    }

    .news-img {
        width: 100%;
        height: 180px;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tabs button {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* === Мелкие визуальные приятности === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1b1b1e;
}
::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}