/* ================================
   БАЗОВЫЕ СТИЛИ
================================ */

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #d7e9ff;
    transition: background 0.5s;
}

body.night {
    background: #0b1e33;
    color: #e0e0e0;
}

body.day {
    background: #d7e9ff;
    color: #000;
}

.content {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

/* ================================
   ВЕРХНЯЯ ПАНЕЛЬ
================================ */

.top-bar {
    width: 100%;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.btn {
    padding: 8px 16px;
    background: #0078d4;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #005a9e;
}

/* ================================
   ЛОГИН
================================ */

.login-box {
    width: 350px;
    margin: 120px auto;
    padding: 30px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    text-align: center;
}

.login-box input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #aaa;
}

.flash {
    margin-top: 10px;
    padding: 10px;
    background: #ffcccc;
    border-radius: 8px;
}

/* ================================
   ПЛИТКИ МЕНЮ
================================ */

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.tile {
    display: block;
    padding: 30px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    text-align: center;
    border-radius: 16px;
    font-size: 20px;
    color: #000;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: 0.2s;
}

.tile:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.8);
}

/* ================================
   НОВОСТИ
================================ */

.news-block {
    margin-top: 20px;
}

.news-item {
    background: rgba(255,255,255,0.6);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-img {
    max-width: 300px;
    border-radius: 12px;
    margin-top: 10px;
}

.date {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.7;
}

/* ================================
   ТАБЛИЦЫ ФАЙЛОВ
================================ */

.file-table, .user-table, .grafik-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.file-table th, .file-table td,
.user-table th, .user-table td,
.grafik-table td {
    border: 1px solid #aaa;
    padding: 10px;
}

.inline {
    display: inline-block;
}

.comment {
    margin-top: 10px;
    padding: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 8px;
}

/* ================================
   ГРАФИК — КНОПКИ МЕСЯЦЕВ
================================ */

.month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.month {
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    color: #000;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: 0.2s;
}

.month:hover {
    transform: translateY(-5px);
}

/* Цвета сезонов */
.winter { background: #e8f0ff; }
.spring { background: #e6ffe6; }
.summer { background: #d9ffd9; }
.autumn { background: #fff0cc; }

/* ================================
   ГРАФИК — ТАБЛИЦА
================================ */

.grafik-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
}

.grafik-table td {
    border: 1px solid #aaa;
    padding: 6px;
    text-align: center;
}

/* ================================
   ГРАФИК — КНОПКИ МЕСЯЦЕВ
================================ */

.month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.month {
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    color: #000;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: 0.2s;
}

.month:hover {
    transform: translateY(-5px);
}

/* Цвета сезонов */
.winter { background: #e8f0ff; }
.spring { background: #e6ffe6; }
.summer { background: #d9ffd9; }
.autumn { background: #fff0cc; }

/* ================================
   дополнение для загрузки файлов
================================ */

.upload-form {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    display: inline-block;
}

.upload-form input[type="file"] {
    margin-right: 10px;
}

/*последнее добавление*/

.grafik-table {
    border-collapse: collapse;
    font-size: 14px;
}

.grafik-table td {
    padding: 4px 6px;
    border: 1px solid #ccc;
    min-width: 30px;
}

