/* Основные цвета: черный и серый */
/*
 * Два уровня хедера (templates/base.html):
 * 1) основной (#2a2a2a) — логотип, Dashboard/Integration, язык, настройки
 * 2) подраздел (#606060) — подвкладки + баланс (только Dashboard/Integration)
 * --site-header-offset: один хедер (~61px) или оба (~142px) при body.has-sub-header
 */
:root {
    --site-main-header-height: 61px;
    --site-sub-header-height: 81px;
    --site-header-offset: var(--site-main-header-height);
}

body.has-sub-header {
    --site-header-offset: calc(var(--site-main-header-height) + var(--site-sub-header-height));
}

body {
    background-color: #e0e0e0 !important;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    flex-shrink: 0;
}

main {
    background-color: #e0e0e0;
    flex: 1 1 auto;
    min-width: 0;
}

/* Play: без скролла страницы — main занимает остаток под двумя хедерами */
body.play-page {
    height: 100vh;
    overflow: hidden;
}

body.play-page main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.play-page .play-page-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

body.play-page .tvbetframe {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

.tvbetframe {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #555;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    background-color: #2a2a2a;
}

/* Кнопки в черно-сером стиле */
button {
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

button:hover {
    background-color: #2a2a2a;
    border-color: #777;
    color: #fff;
}

button:active {
    background-color: #0a0a0a;
    border-color: #333;
}

/* Ссылки */
a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #fff;
}

/* Формы */
input, textarea, select {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 8px 12px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #777;
    background-color: #333;
}
