/* ========================================= */
/*          IT CONF 2026 - LIGHT THEME       */
/* ========================================= */

/* --- 1. БАЗОВЫЕ НАСТРОЙКИ --- */
body {
    margin: 0; padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f5f7f9; /* Светлый серо-голубой фон (как на tsu.ru) */
    color: #1a1a1a; /* Почти черный текст */
    line-height: 1.6;
    display: flex; flex-direction: column; min-height: 100vh;
    overflow-x: hidden; /* ЗАПРЕЩАЕМ горизонтальный скролл на уровне всей страницы */
    width: 100%;
}

/* Контейнер 1200px */
.container-fixed {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    box-sizing: border-box; width: 100%;
}

/* Ссылки */
a { color: #005baa; text-decoration: none; transition: 0.2s; }
a:hover { color: #c0392b; text-decoration: underline; }

/* --- 2. ШАПКА И ИНФОРМЕРЫ --- */
.top-header {
    background: #ffffff;
    padding: 5px 0;
    border-bottom: 2px solid #e1e4e8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-title h1 {
    font-size: 1.6em; color: #005baa; /* Фирменный синий ТГУ */
    text-align: center; margin: 0 0 15px 0; text-transform: uppercase; letter-spacing: 1px;
}


/* --- 3. БЕГУЩАЯ СТРОКА --- */
/* Блок бегущей строки */
.marquee-container {
    width: 100%;
    max-width: 100vw; /* Гарантируем, что контейнер не шире окна браузера */
    overflow: hidden; /* ВСЁ, ЧТО ВЫЛЕЗАЕТ — ПРЯЧЕМ. Это уберет скролл */
    position: relative;
    background: #005baa; /* В светлой теме тут был синий #005baa */
    border-bottom: 1px solid #30363d;
    padding: 10px 0;
    z-index: 5;
}

.marquee-track {
    display: flex;
    width: max-content; /* Позволяет треку быть шире экрана, чтобы ехать */
    animation: scroll-infinite 60s linear infinite; /* Увеличил время до 60с, так как текста стало много */
}
.marquee-item { font-size: 0.95em; color: #ffffff; white-space: nowrap; padding-right: 100px; font-weight: 500; }
@keyframes scroll-infinite { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 4. ЛЕЙАУТ --- */
.layout-wrapper-fluid { display: flex; margin-top: 30px; align-items: stretch; flex: 1; }
.sidebar { width: 280px; flex-shrink: 0; border-right: 1px solid #e1e4e8; background: #ffffff; }
.side-nav { position: sticky; top: 20px; padding: 10px 0; }

.side-nav a {
    display: block; padding: 14px 20px; color: #444; text-decoration: none;
    transition: all 0.3s ease; font-size: 1.05em; font-weight: 600; border-left: 5px solid transparent;
}
.side-nav a:hover { color: #005baa; background: #f0f4f8; padding-left: 25px; }
.side-nav a.active { color: #005baa; background: #eef4fb; border-left-color: #005baa; }
.side-nav hr { border: 0; border-top: 1px solid #e1e4e8; margin: 15px 20px; }
.adm-link { color: #c0392b !important; } /* Красный акцент для админки */
.exit-link { color: #586069 !important; }

.main-content {
    flex: 1;
    padding: 0 0 10px 40px; /* Уменьшили нижний отступ до 10 */
    min-width: 0;
}
/* РЕЖИМ БЕЗ МЕНЮ */
.no-sidebar-layout { display: block; margin-top: 30px; }
.main-content.full-width { padding: 0 0 40px 0 !important; width: 100% !important; }
.main-content.full-width .reg-form-container { max-width: 100% !important; }

/* --- 5. ФОРМА РЕГИСТРАЦИИ (СВЕТЛАЯ) --- */
.reg-form-container {
    background: #ffffff; border: 1px solid #d1d5da; border-radius: 8px;
    padding: 40px; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    width: 100%; max-width: 900px; box-sizing: border-box; margin: 0 auto;
}
.section-title { color: #238636; font-size: 1.4em; border-bottom: 2px solid #238636; padding-bottom: 10px; margin-bottom: 25px; font-weight: bold; }
.section-title.sub { color: #005baa; border-color: #005baa; }

.form-group { margin-bottom: 30px; width: 100%; }
.field-label { color: #7a5a00; font-weight: bold; font-size: 0.95em; margin-bottom: 5px; display: block; }
.req { color: #cb2431; margin-right: 3px; }

/* Поля ввода */
.registration-page input, .registration-page select, .registration-page textarea {
    width: 90% !important; background: #ffffff !important; border: 1px solid #d1d5da !important;
    border-radius: 4px !important; color: #1a1a1a !important; padding: 12px 15px !important; font-size: 14px !important;
    box-sizing: border-box;
}
.registration-page input:focus { border-color: #005baa !important; outline: none; box-shadow: 0 0 0 3px rgba(0,91,170,0.1); }

.field-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.field-grid-2 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 15px; }

/* Кнопки возврата */
.custom-input-wrap { position: relative; width: 90%; }
.custom-input-wrap input { border-style: dashed !important; border-color: #238636 !important; padding-right: 40px !important; }
.btn-reset-combo {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; background: #e1e4e8; color: #444; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 10px; cursor: pointer; z-index: 10;
}
.btn-reset-combo:hover { background: #cb2431; color: #fff; }

/* Выстраиваем радиокнопки строго в одну линию */
.role-selector {
    display: flex;
    flex-direction: row;     /* Направление: строка */
    align-items: center;     /* Центровка по вертикали */
    gap: 40px;               /* Зазор между двумя кнопками */
    margin: 15px 0;
    flex-wrap: nowrap;       /* ЗАПРЕЩАЕМ перенос на новую строку */
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;     /* ЗАПРЕЩАЕМ перенос текста внутри метки */
}
.radio-label span {
    color: #1a1a1a !important;
}

/* Стилизация самого кружка (input) */
.radio-label input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    cursor: pointer;
    flex-shrink: 0;          /* Чтобы кружок не сплющивался при нехватке места */
}

.registration-page .phone-unified-wrapper {
    display: flex !important; align-items: center !important; width: 90% !important; height: 48px;
    position: relative !important; background: #ffffff; border: 1px solid #d1d5da; border-radius: 4px; overflow: hidden;
}
.phone-country-selector { width: 160px !important; background: #f6f8fa !important; border: none !important; color: #1a1a1a !important; padding-left: 15px !important; }
.phone-country-selector option { background: #fff; color: #000; }
.phone-separator { width: 1px; height: 24px; background: #d1d5da; }
#phone { flex: 1 !important; background: transparent !important; border: none !important; padding-right: 40px !important; color: #000 !important; }

/* --- 6. АДМИН-ПАНЕЛЬ (СВЕТЛАЯ) --- */
.admin-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 30px; }
.stat-pill {
    background: #ffffff; border: 1px solid #d1d5da; padding: 12px 25px; border-radius: 50px;
    display: flex; align-items: center; gap: 12px; border-top: 3px solid #444;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.stat-pill.highlight { border-top-color: #f39c12; }
.stat-pill.accepted { border-top-color: #238636; }
.stat-pill.rejected { border-top-color: #f85149; }
.stat-label { color: #586069; font-size: 0.85em; text-transform: uppercase; font-weight: bold; }
.stat-value { color: #000; font-size: 1.2em; font-weight: 800; font-family: 'Courier New', monospace; }

.admin-accordion { background: #ffffff; border: 1px solid #d1d5da; border-radius: 8px; margin-bottom: 30px; overflow: hidden; }
.admin-accordion-header {
    padding: 15px 25px; background: #f6f8fa; cursor: pointer; font-weight: bold;
    color: #c0392b; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #d1d5da;
}
.admin-accordion[open] .acc-arrow { transform: rotate(180deg); }

.admin-flex-split { display: flex; gap: 30px; padding: 30px; }
.admin-creation-block { flex: 1; min-width: 320px; margin: 0 !important; background: #fcfcfc !important; padding: 25px !important; border: 1px solid #e1e4e8 !important; }
.admin-posts-table-wrap { flex: 2; background: #ffffff; border-radius: 8px; border: 1px solid #d1d5da; overflow-y: auto; max-height: 600px; }

/* Таблицы */
.admin-table-simple { width: 100%; border-collapse: collapse; }
.admin-table-simple th { position: sticky; top: 0; background: #f6f8fa; padding: 12px 15px; font-size: 0.75em; color: #586069; text-align: left; z-index: 2; border-bottom: 2px solid #d1d5da; }
.admin-table-simple td { padding: 10px 15px; border-bottom: 1px solid #f1f1f1; }

.moderation-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; min-width: 800px; }
.moderation-table th { padding: 10px 15px; color: #586069; text-transform: uppercase; font-size: 0.75em; text-align: left; }
.clickable-row { background: #ffffff; cursor: pointer; transition: 0.2s; border: 1px solid #d1d5da; }
.clickable-row:hover { background: #f0f4f8; outline: 1px solid #005baa; }
.clickable-row td { padding: 12px 15px; border-top: 1px solid #e1e4e8; border-bottom: 1px solid #e1e4e8; }
.clickable-row td:first-child { border-left: 1px solid #e1e4e8; border-radius: 8px 0 0 8px; }
.clickable-row td:last-child { border-right: 1px solid #e1e4e8; border-radius: 0 8px 8px 0; }

.status-tag { padding: 2px 8px; border-radius: 4px; font-size: 0.75em; font-weight: bold; }
.status-tag.new { background: #fff5b1; color: #735c0f; }
.status-tag.accepted { background: #dcffe4; color: #155724; }
.status-tag.rejected { background: #ffdce0; color: #86181d; }

/* --- 7. ПРОСМОТР PDF И МОДАЛКА --- */
.pdf-viewer-container { width: 100%; height: 82vh; background: #f6f8fa; border: 1px solid #d1d5da; border-radius: 8px; overflow: hidden; }
.close-view-circle { width: 40px; height: 40px; background: #c0392b; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: bold; box-shadow: 0 3px 10px rgba(0,0,0,0.1); transition: 0.3s; flex-shrink: 0; }
.close-view-circle:hover { background: #a93226; transform: scale(1.1) rotate(90deg); }

/* МОДАЛЬНОЕ ОКНО */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.participant-card-modal { background: #ffffff !important; width: 500px; max-width: 95%; max-height: 90vh; border-radius: 12px; border: 2px solid #005baa !important; position: relative; padding: 30px; display: flex; flex-direction: column; box-shadow: 0 15px 50px rgba(0,0,0,0.3); color: #1a1a1a !important; /* Основной текст - черный */ }
.modal-close { position: absolute; top: 15px; right: 15px; font-size: 1.8em; cursor: pointer; color: #95a5a6; }
.modal-card-header { border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; text-align: center; }
.modal-card-header h2 { color: #005baa !important; font-weight: 800; }
.modal-card-header p { color: #333 !important; font-weight: 600; }
.modal-card-content { overflow-y: auto; padding-right: 10px; }
.modal-card-label { color: #c0392b !important; font-weight: bold; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.5px; margin-right: 8px; }

.m-field span {
    color: #000 !important; /* Сами данные - строго черные */
    font-weight: 500;
}

#m-abstract {
    background: #f8f9fa !important;
    color: #1a1a1a !important;
    border: 1px solid #e1e4e8;
    padding: 15px;
    line-height: 1.5;
}

/* --- 8. АКАДЕМИЧЕСКИЙ ТЕКСТ И ГЛАВНАЯ --- */
.academic-body { font-family: 'Times New Roman', serif; font-size: 1.25em; text-align: justify; color: #000; }
.academic-body h2 { font-family: 'Segoe UI', sans-serif; color: #c0392b; text-transform: uppercase; font-size: 1.3em; margin: 40px 0 20px 0; border-left: 4px solid #c0392b; padding-left: 15px; }

.minimal-row-item {
    display: flex; align-items: center; gap: 15px; padding: 10px 15px;
    background: #ffffff; border: 1px solid #d1d5da; border-radius: 6px;
    text-decoration: none; color: inherit; margin-bottom: 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.minimal-row-item:hover { border-color: #005baa; background: #f9fbff; }
.row-date { font-family: monospace; font-size: 0.85em; color: #7a5a00; background: #fef8e7; padding: 2px 6px; border-radius: 4px; }
.row-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-grow: 1; font-size: 0.95em; }

/* КАРТОЧКИ ДОКЛАДОВ (СТРАНИЦА ДОКЛАДЫ) */
.report-card-button {
    background: #ffffff; border: 1px solid #d1d5da; border-radius: 8px;
    padding: 12px 18px; margin-bottom: 12px; cursor: pointer;
    display: flex; flex-direction: column; gap: 4px;
    transition: all 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.report-card-button:hover {
    border-color: #005baa; background: #f9fbff;
    transform: translateX(5px); box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.report-authors-line { color: #1a1a1a; }
.report-authors-line strong { color: #005baa; }
.topic-text { font-family: 'Times New Roman', serif; font-size: 1.15em; font-weight: bold; color: #000; }
.report-org-city-inline { color: #586069; }

/* --- 9. ФУТЕР --- */
.final-step-centered {
    border-top: 1px solid #30363d;
    padding-top: 20px; /* Было 40, сделали 20 */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.submit-btn-centered {
    background: #005baa !important; color: white !important;
    padding: 16px 60px !important; font-size: 1.15em !important; font-weight: bold !important;
    border-radius: 35px !important; border: none !important; cursor: pointer; transition: 0.3s;
}
.submit-btn-centered:hover { background: #004a8a !important; transform: scale(1.03); }
.site-footer {
    width: 100%;
    margin-top: auto;
    border-top: 1px solid #e1e4e8; /* Светло-серая линия разграничения */
    padding: 10px 0; /* Узкая высота */
    background: #f6f8fa; /* Очень светлый серо-голубой фон (как на tsu.ru) */
    flex-shrink: 0;
}/* АДАПТИВНОСТЬ */
@media (max-width: 1100px) {
    .layout-wrapper-fluid, .admin-flex-split { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid #e1e4e8; }
    .main-content { padding: 20px; width: 100%; }
    .side-nav { display: flex; flex-wrap: wrap; justify-content: center; position: static; height: auto; }
    .side-nav a { border-left: none; border-bottom: 3px solid transparent; }
    .side-nav a.active { border-bottom-color: #005baa; }
    .field-grid-3, .field-grid-2 { grid-template-columns: 1fr; }
    .registration-page input, .registration-page select, .registration-page textarea, .custom-input-wrap { width: 100% !important; }
}

/* --- ФИКС КАРТОЧКИ МОДЕРАЦИИ (admin_report.php) --- */
.registration-page .field-grid-2 p,
.registration-page .speaker-details p {
    color: #000 !important; /* Все тексты внутри карточки - черные */
}

.registration-page .field-label {
    color: #005baa !important; /* Синие метки вместо золотых */
}

.registration-page strong {
    color: #000 !important;
}

.registration-page .org-section small {
    color: #444 !important;
}

/* --- СТИЛИ ДЛЯ АННОТАЦИЙ В ЛК (СВЕТЛАЯ ТЕМА) --- */
.annotation-container {
    background: #f6f8fa !important; /* Очень светлый серый фон */
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border: 1px solid #d1d5da; /* Тонкая рамка */
}

.annotation-text {
    color: #000000 !important; /* Глубокий черный текст */
    font-style: italic;
    font-size: 0.95em;
    line-height: 1.6;
    white-space: pre-wrap;
    margin: 0;
}

/* Выравнивание заголовка и поиска в одну строку */
.hero-flex-header {
    display: flex;
    justify-content: space-between; /* Заголовок влево, поиск вправо */
    align-items: center;            /* Центрируем по вертикали */
    gap: 20px;                      /* Зазор между ними */
    flex-wrap: wrap;                /* Чтобы на мобилках поиск ушел под заголовок */
    margin-bottom: 10px;
}

.hero-flex-header h1 {
    margin: 0;                      /* Убираем стандартные отступы, чтобы не ломать линию */
    font-size: 1.6em;
    white-space: nowrap;            /* Чтобы заголовок не переносился */
}

/* Компактная форма поиска */
.search-form-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form-inline input {
    width: 320px !important;        /* Можно регулировать ширину здесь */
    height: 40px !important;
    border-radius: 20px !important;
    margin: 0 !important;
}

.search-form-inline button {
    width: auto !important;
    height: 40px !important;
    border-radius: 20px !important;
    padding: 0 20px !important;
    margin: 0 !important;
}

/* --- СТИЛИ ПЕЧАТНОГО ДОКУМЕНТА --- */

.info-document {
    font-family: 'Times New Roman', Times, serif !important;
    color: #000 !important;
    background-color: #fff !important;
    padding: 60px !important; /* Больше отступов как у листа А4 */
}

/* Шапка "Лого слева, Текст справа" */
.doc-header-table {
    display: flex;
    align-items: center; /* Центрируем по вертикали */
    justify-content: space-between;
    width: 100%;
    margin-bottom: 25px;
    gap: 20px;
}

.logo-cell {
    flex: 0 0 280px; /* Ширина логотипа, чтобы его высота совпала с текстом */
    display: flex;
    justify-content: flex-start;
}

.doc-logo-img {
    width: 100%;
    height: auto;
    display: block;
}

.text-cell {
    flex: 1;
    text-align: center;
    /* Убираем все межстрочные интервалы */
}

/* MS Word: Интервал 1.0, После: 0 пт */
.text-cell p,
.text-cell h2 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important; /* Очень плотный интервал */
    font-family: 'Times New Roman', serif !important;
}

.text-cell h2 {
    font-size: 1.3em !important; /* Уменьшили размер названия конфы */
}

.text-cell p {
    font-size: 12px !important; /* Уменьшили размер остального текста */
}

.doc-main-title {
    text-align: center;
    font-weight: bold;
    margin: 30px 0;
    font-size: 1.5em;
    color: #000;
    border: none !important;
}

.doc-section-h {
    margin-top: 30px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: underline;
    border: none !important;
}

.doc-content-body p {
    margin-bottom: 15px;
}

.doc-main-sections {
    padding-left: 25px;
}

.doc-main-sections > li {
    margin-bottom: 15px;
}

.doc-sub-list {
    list-style: disc;
    padding-left: 30px;
    margin-top: 5px;
}

.doc-bullet-list {
    list-style: square;
    padding-left: 30px;
}

.doc-bullet-list li {
    margin-bottom: 10px;
}

/* QR КОД ВНИЗУ */
.doc-footer-qr-area {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.qr-code-settled {
    margin: 0 auto;
    width: 140px; /* "Устаканенный" размер */
    height: 140px;
    padding: 5px;
    background: #fff;
}

.qr-img {
    width: 100%;
    height: 100%;
}

/* Адаптивность для печати на экране */
@media (max-width: 900px) {
    .info-document { padding: 30px !important; }
    .doc-header-table { flex-direction: column; }
    .text-cell { padding-left: 0; margin-top: 20px; }
    .logo-cell { flex: 0 0 120px; }
}

/* СТИЛИ ДЛЯ ПРИМЕРА ТАБЛИЦЫ В ДОКУМЕНТЕ */
.sample-doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Times New Roman', serif;
    font-size: 10pt;
}

.sample-doc-table th,
.sample-doc-table td {
    border: 1px solid #000;
    padding: 5px;
    text-align: center;
}

.sample-doc-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Настройка отступов для списков в документе */
.doc-content-body ul,
.doc-content-body ol {
    margin-bottom: 20px;
    padding-left: 40px;
}

.doc-content-body li {
    margin-bottom: 5px;
}

.doc-numeric-list {
    padding-left: 40px;
    margin-bottom: 20px;
}
.doc-numeric-list li {
    margin-bottom: 10px;
    list-style-type: decimal;
}

/* Кнопка скачивания шаблона в стиле ТГУ */
.btn-download-template {
    display: inline-block;
    background-color: #005baa; /* Фирменный синий */
    color: #ffffff !important;
    padding: 14px 30px;
    border-radius: 30px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 91, 170, 0.2);
    transition: all 0.3s ease;
    font-size: 1.05em;
    border: none;
    cursor: pointer;
}

.btn-download-template:hover {
    background-color: #004a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 91, 170, 0.3);
    color: #fff !important;
}

.btn-download-template:active {
    transform: translateY(0);
}

/* --- ДРУГИЕ РАБОТЫ АВТОРА (СВЕТЛАЯ ТЕМА) --- */

.admin-other-reports-wrapper {
    margin: 30px 0;
    padding: 20px;
    background: #f6f8fa !important; /* Светлый серо-голубой фон */
    border: 1px solid #d1d5da;
    border-radius: 8px;
}

.admin-other-reports-list .minimal-row-item {
    background: #ffffff !important;
    border: 1px solid #d1d5da !important;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

/* Эффект наведения в светлой теме */
.admin-other-reports-list .minimal-row-item:hover {
    border-color: #005baa !important; /* Синий ТГУ */
    background: #f0f7ff !important; /* Очень легкий голубой оттенок */
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 91, 170, 0.1);
}

.admin-other-reports-list .topic-label {
    color: #1a1a1a !important; /* Черный текст темы */
    font-weight: 500;
}

/* Статусы для светлой темы (пастельные) */
.status-tag.accepted { background: #dcffe4 !important; color: #155724 !important; border: 1px solid #abe3b5; }
.status-tag.rejected { background: #ffdce0 !important; color: #86181d !important; border: 1px solid #fdaeb7; }
.status-tag.new { background: #fff5b1 !important; color: #735c0f !important; border: 1px solid #ffe58f; }