/* Splash Screen */
@font-face {
    font-family: 'DINPro-Cond';
    src: url('../fonts/DINPro-Cond.woff') format('woff');
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center; /* Центрируем по горизонтали */
    align-items: center;     /* Центрируем по вертикали */
    z-index: 1000;
    background: #121212;
    transition: opacity 0.5s;
}

.splash-text {
    position: relative; /* Чтобы точки позиционировались относительно этого блока */
    font-family: 'DINPro-Cond', sans-serif;
    font-size: 10vw;
    color: #4d8eff;
    text-transform: uppercase;
    white-space: nowrap;
}

.splash-text-container {
    /* Фиксируем ширину контейнера */
    display: inline-block;
    text-align: center;
}

.splash-text-base {
    /* Текст остаётся в потоке и центрируется через родителя */
}

.splash-text-dots {
    position: absolute; /* Точки вне потока, не влияют на ширину */
    left: 100%;        /* Прижимаем к концу основного текста */
    top: 0;
}

#main-content {
    display: none;
}

/* Основные стили */
body {
    font-family: sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

body.light-theme {
    background-color: #f5f5f5;
    color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 30px;
}

.header {
    font-family: 'Gilroy', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #1e1e1e;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.light-theme .header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.group-name {
    color: #4d8eff;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.light-theme .group-name {
    color: #0066ff;
}

.nav-tabs {
    display: flex;
    gap: 10px;
}

.nav-button {
    padding: 8px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #e0e0e0;
    transition: all 0.3s ease;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.light-theme .nav-button {
    color: #333;
}

.nav-button:hover {
    background: #333;
}

.light-theme .nav-button:hover {
    background: #f0f0f0;
}

.nav-button.active {
    background: #4d8eff;
    color: white;
}

.light-theme .nav-button.active {
    background: #0066ff;
}

.tab-content {
    display: none;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    min-height: 300px;
}

.light-theme .tab-content {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.marquee {
    background-color: #ffcc00;
    padding: 5px;
    margin-bottom: 15px;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-form {
    margin: 20px 0;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 5px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.light-theme .filter-form {
    background: #f5f5f5;
}

.filter-form label {
    font-weight: bold;
}

.filter-form select {
    padding: 8px 12px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #333;
    color: #e0e0e0;
}

.light-theme .filter-form select {
    border: 1px solid #ddd;
    background: white;
    color: #333;
}

#today-button {
    padding: 8px 16px;
    background: #4d8eff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.light-theme #today-button {
    background: #0066ff;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.schedule-table th, .schedule-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.light-theme .schedule-table th,
.light-theme .schedule-table td {
    border-bottom: 1px solid #ddd;
}

.schedule-table th {
    background-color: #4d8eff;
    color: white;
}

.light-theme .schedule-table th {
    background-color: #0066ff;
}

.today-row {
    background-color: #333300;
    font-weight: bold;
}

.light-theme .today-row {
    background-color: #fffacd;
}

.upload-form {
    margin: 20px 0;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 5px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.light-theme .upload-form {
    background: #f5f5f5;
}

.upload-form input {
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #333;
    color: #e0e0e0;
}

.light-theme .upload-form input {
    background: white;
    border-color: #ddd;
    color: #333;
}

#upload-button {
    padding: 8px 16px;
    background: #4d8eff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.files-table th, .files-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.files-table th {
    background-color: #4d8eff;
    color: white;
}

.file-action {
    color: #4d8eff;
    cursor: pointer;
    margin-right: 10px;
}

.btn {
    padding: 6px 12px;
    margin: 0 4px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn {
    background-color: #4d8eff;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    opacity: 0.9;
}

.delete-btn {
    background-color: #f44336;
    color: white;
}

.dark-theme .btn {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark-theme .delete-btn {
    background-color: #d32f2f;
}

.light-theme .btn {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.light-theme .delete-btn {
    background-color: #f44336;
}

.files-table .btn {
    padding: 4px 8px;
    font-size: 13px;
    margin: 0 3px;
}

.files-table td {
    white-space: nowrap;
}