/* =====================================================
   BASE.CSS - Базовые стили и общие классы
   ===================================================== */

/* ------------------- 1. БАЗОВЫЕ СТИЛИ BODY ------------------- */
body {
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    color: white;
}

/* Отключаем скролл у body в определённых состояниях */
body.no-scroll {
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* ------------------- 2. СКРЫТЫЕ ЭЛЕМЕНТЫ ------------------- */
.hidden {
    display: none !important;
}

/* ------------------- 3. ОСНОВНОЙ ЛЕЙАУТ ------------------- */
.main-layout {
    padding: 20px;
    background-color: #1B1D24;
    border-radius: 10px;
    margin: 10px auto;
    max-width: 1500px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Левая боковая панель */
.sidebar-left {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    flex-shrink: 0;
}

/* Контейнер для товаров */
.container {
    padding-right: 10px;
    flex: 1;
    margin: 10px;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
}

/* Боковые блоки (мониторинг, команды) */
.sidebar-block {
    background-color: #22242D;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    flex: 1;
}

/* Центрированный текст */
.centered {
    text-align: center;
    font-size: 24px !important;
    color: #99A2AC;
}

/* ------------------- 4. КОМАНДЫ ------------------- */
.teams .command {
    background-color: #15171C;
    color: #9EA7B1;
    padding: 3px 6px;
    border-radius: 5px;
    font-weight: bold;
}

/* ------------------- 5. МОНИТОРИНГ (ПРОГРЕСС-БАР) ------------------- */
.monitoring .progress-bar {
    width: 100%;
    background-color: #1B1D24;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
    position: relative;
}

.monitoring .progress-bar .progress {
    height: 25px;
    background-color: #4caf50;
    color: white;
    border-radius: 5px;
    width: 0;
    transition: width 0.4s;
}

.monitoring .progress-bar::before {
    content: attr(data-text);
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    pointer-events: none;
}

.monitoring .play-button {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 18px;
}

.monitoring .play-button:hover {
    background-color: #0056b3;
}

/* ------------------- 6. СТАТИСТИКА ------------------- */
.statistics .statistics-item {
    font-size: 17px;
    cursor: pointer;
    margin-bottom: 10px;
}

.statistics .statistics-item .info {
    font-size: 16px;
    display: none;
    border-radius: 10px;
    padding: 10px;
    background-color: rgba(25, 25, 30, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.statistics .details-button {
    width: 100%;
    padding: 10px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
}

.statistics .details-button:hover {
    background-color: #0074F0;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* ------------------- 7. ФИЛЬТРЫ И ПОИСК ------------------- */
.filter-search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.filter-selection button {
    width: 150px;
    padding: 10px 15px;
    background-color: #237BFF;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 5px;
}

.filter-selection button:hover {
    background-color: #1F6DE1;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.search-bar {
    display: flex;
    align-items: center;
    border: none;
    flex-grow: 1;
    margin-left: 20px;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    border-radius: 20px;
    background-color: #22242D;
    box-sizing: border-box;
    color: white;
}

/* ------------------- 8. СТРАНИЦА "СНАЧАЛА ВОЙДИТЕ" ------------------- */
.login-required-container {
    color: #fff;
    text-align: center;
    max-width: 500px;
    margin: 100px auto;
    background-color: #1C1E24;
    padding: 20px;
    border-radius: 10px;
}

.login-required-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.shop {
    transition: transform 0.4s;
    color: #237BFF !important;
    font-weight: bold;
    text-decoration: none;
    margin: 0 10px;
}

.shop:hover {
    transform: scale(1.1);
    color: white !important;
}

/* ------------------- 9. СНЕЖИНКИ ------------------- */
.snowflake {
    position: absolute;
    top: -50px;
    color: #fff;
    user-select: none;
    pointer-events: none;
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
}

@keyframes snowflakes-fall {
    0% {
        top: -50px;
        opacity: 1;
    }
    100% {
        top: 100vh;
        opacity: 0;
    }
}

@keyframes snowflakes-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(10px); }
    50% { transform: translateX(20px); }
    75% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}