/* Сброс базовых отступов */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* Настройки шапки сайта */
.site-header {
    background-color: #343a40; /* Темно-серый фон, соответствующий макетам */
    color: #ffffff;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: normal;
}

.main-nav a {
    color: #cccccc;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

.auth-block .btn-login {
    border: 1px solid #5a6268;
    background-color: #343a40;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    transition:
        background-color 0.3s,
        color 0.3s;
}

.auth-block .btn-login:hover {
    background-color: #5a6268;
}

/* Настройки основного контента */
.main-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.page-title {
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 50px;
    color: #000000;
}

/* Адаптивная таблица */
.table-responsive {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #e0e0e0;
    padding: 10px;
}

.schedule-table th {
    background-color: #f8f9fa;
    color: #333333;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* Изменение состояния кнопок сортировки при наведении */
.schedule-table th:hover {
    background-color: #e2e6ea;
}

.schedule-table th span {
    font-size: 10px;
    margin-left: 5px;
}

.schedule-table a {
    color: #0056b3; /* Фирменный синий оттенок для ссылок */
    text-decoration: none;
}

.schedule-table a:hover {
    text-decoration: underline;
}

.login-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid #ffffff4d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.login-btn:hover {
    background: white;
    color: #2c3e50;
}

/* Основной фон шапки */
.header {
    background-color: #2c3e50; /* Темно-синий/серый цвет как на твоем первом скрине */
    padding: 15px 0;
    color: white;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Ссылка ГЛАВНАЯ */
.nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

/* Стили кнопок (ВОЙТИ / ВЫЙТИ) */
.login-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white !important; /* Важно, чтобы текст был белым */
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
    cursor: pointer;
}

.login-btn:hover {
    background: white;
    color: #2c3e50 !important;
}

/* Особенный стиль для кнопки СОХРАНИТЬ */
.btn-save {
    background-color: #27ae60;
    border-color: #27ae60;
    margin-right: 10px;
}

.btn-save:hover {
    background-color: #2ecc71;
    color: white !important;
}
/* Контейнер для полоски управления */
.admin-table-controls {
    display: flex;
    align-items: center;
    margin-top: -1px; /* Чтобы полоска прилегала к таблице */
    padding: 0 10px;
    height: 30px;
}

/* Тонкая синяя линия */
.control-line {
    flex-grow: 1;
    height: 2px;
    background-color: #3498db; /* Тот самый синий цвет */
    margin: 0 15px;
    border-radius: 2px;
}

/* Кнопки + и - */
.control-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 16px;
    line-height: 1;
}

.control-btn:hover {
    background-color: #3498db;
    color: white;
}

.control-btn.minus {
    border-color: #e74c3c;
    color: #e74c3c;
}

.control-btn.minus:hover {
    background-color: #e74c3c;
    color: white;
}

/* Стили для предотвращения "схлопывания" пустых редактируемых полей */
.editable-cell {
    display: inline-block;
    width: 100%;
    min-height: 20px;
    outline: none;
    word-break: break-word;
}

/* Оформление инпута даты для админа */
.sort-key-input {
    display: block;
    margin: 4px auto 0 auto;
    font-size: 11px;
    padding: 2px 4px;
    border: 1px solid #3498db;
    border-radius: 4px;
    color: #2c3e50;
    font-family: Arial, sans-serif;
}

/* Кроссбраузерный фикс адаптивности таблиц (Firefox/Safari) */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* Стилизация ссылок для пользователей */
.table-external-link {
    color: #0056b3 !important;
    text-decoration: underline !important;
    font-weight: bold;
}
.table-external-link:hover {
    color: #003d82 !important;
}

/* Оформление инпутов даты для админа (оба столбца) */
.sort-key-input, .deadline-sort-input {
    display: block;
    margin: 4px auto 0 auto;
    font-size: 11px;
    padding: 2px 4px;
    border: 1px solid #3498db;
    border-radius: 4px;
    color: #2c3e50;
    font-family: Arial, sans-serif;
}

.editable-cell {
    display: inline-block;
    width: 100%;
    min-height: 20px;
    outline: none;
    word-break: break-word;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-external-link {
    color: #0056b3 !important;
    text-decoration: underline !important;
    font-weight: bold;
}
.table-external-link:hover {
    color: #003d82 !important;
}
