/* Общие стили */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.monitoring-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

/* Отдельная колонка */
.monitoring-column {
    flex: 1;
    min-width: 300px;
}

/* Стили боковой панели */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background-color: #1e1e1e;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden; /* Отключаем горизонтальный скроллинг */
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.5);
}

.sidebar .user-info {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.sidebar .user-info span {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.sidebar .user-info button {
    padding: 10px 15px;
    background-color: #dc3545;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sidebar .user-info button:hover {
    background-color: #b02a37;
}

.sidebar h2 {
    font-size: 20px;
    margin: 0 0 20px;
    text-align: center;
    color: #fff;
}

/* Группа навигации */
.nav-group {
    margin-bottom: 20px;
}

.nav-group h3 {
    margin: 0 10px 10px;
    font-size: 16px;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

/* Элементы меню */
.nav-item {
    display: block;
    width: calc(100% - 20px);
    padding: 10px 15px;
    margin: 0 10px 10px;
    background-color: #0066cc;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

.nav-item:hover {
    background-color: #004c99;
}

.nav-item.secondary {
    background-color: #17a2b8;
}

.nav-item.secondary:hover {
    background-color: #117a8b;
}

/* Основной контент */
.main-content {
    margin-left: 280px;
    padding: 20px;
}

.main-content h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

/* Инструкции */
.step-instruction {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.step-instruction h3 {
    margin-top: 0;
    font-size: 18px;
    color: #fff;
}

.step-instruction p {
    margin: 0;
    line-height: 1.5;
}

/* Блоки загрузки */
.upload-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.upload-block {
    flex: 1;
    min-width: 280px;
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.upload-block h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #cfcfcf;
}

.file-upload {
    display: inline-flex;
    width: 100%;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    background-color: #2c2c2c;
}

.file-upload input[type="file"] {
    flex: 1;
    padding: 10px;
    border: none;
    font-size: 14px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    cursor: pointer;
}

.file-upload button {
    padding: 10px 20px;
    border: none;
    background-color: #0066cc;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-upload button:hover {
    background-color: #004c99;
}

details.file-dropdown {
    background-color: #2c2c2c;
    border: 1px solid #333;
    border-radius: 8px;
    margin-top: 15px;
    padding: 10px;
}

details.file-dropdown summary {
    cursor: pointer;
    font-size: 16px;
    color: #fafafa;
    outline: none;
}

details.file-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

details.file-dropdown li {
    padding: 5px 0;
    border-bottom: 1px solid #444;
}

details.file-dropdown li:last-child {
    border-bottom: none;
}

/* Блок разрешённых пользователей */
.user-block {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.user-block h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #cfcfcf;
}

.user-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.user-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.user-list li:last-child {
    border-bottom: none;
}

.user-list button {
    background: none;
    border: none;
    font-size: 18px;
    color: #ff6666;
    cursor: pointer;
    transition: color 0.3s;
}

.user-list button:hover {
    color: #ff3333;
}

.telegram-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.telegram-inputs input[type="text"] {
    padding: 10px;
    flex: 1;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 14px;
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.telegram-inputs button {
    padding: 10px 20px;
    border: none;
    background-color: #28a745;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.telegram-inputs button:hover {
    background-color: #218838;
}

/* Кнопка активации поиска */
.check-btn {
    width: 100%;
    padding: 15px;
    background-color: #17a2b8;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.check-btn:hover {
    background-color: #117a8b;
}

@media (max-width: 768px) {
    .sidebar {
        width: 220px;
        padding: 15px;
    }

    .main-content {
        margin-left: 240px;
        padding: 15px;
    }
}

.spinner {
    border: 2px solid #f3f3f3; /* светло-серый */
    border-top: 2px solid #2bb550; /* белый */
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ═══ ПАГИНАЦИЯ ═══ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 22px 0 10px;
}

.pagination button {
    padding: 8px 18px;
    font-size: 15px;
    background: #0066cc;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: background .3s;
}

.pagination button:hover:not(:disabled) {
    background: #004c99;
}

.pagination button:disabled {
    background: #444;
    cursor: default;
}

/* поиск ─ тот же стиль, что на странице records */
.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 18px
}

.search-box input {
    flex: 1;
    padding: 10px 14px;
    font-size: 15px;
    background: #2c2c2c;
    border: 1px solid #444;
    border-radius: 6px;
    color: #e0e0e0
}

.search-box input:focus {
    outline: none;
    border-color: #17a2b8;
    background: #262626
}

.user-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-list .send-all {
    background: #06c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 0.9em;
}

.user-list .send-all:hover {
    background: #005bb5;
}

.progress-container-multi {
    margin-top: 10px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.progress-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.progress-container {
    width: 100%;
    background: #f3f3f3;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 10px;
    width: 0;
    background: #06c;
    transition: width 0.3s;
}







