/* CSS переменные для тем */
:root {
    /* Тёмная тема (по умолчанию) */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-accent: #60a5fa;
    --border-color: #475569;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-bg: rgba(30, 41, 59, 0.8);
    --hover-bg: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #e2e8f0;
    --bg-tertiary: #cbd5e1;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-accent: #3b82f6;
    --border-color: #cbd5e1;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.8);
    --hover-bg: rgba(0, 0, 0, 0.05);
}

/* Базовые стили */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: none !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

* {
    cursor: none !important;
}

/* Исключения только для текстового ввода */
input[type="text"]:focus, 
input[type="password"]:focus, 
textarea:focus {
    cursor: text !important;
}

/* Контейнер */
.container {
    display: grid;
    grid-template-areas: 
        "header header"
        "main sidebar"
        "footer footer";
    grid-template-columns: 3fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
    padding: 20px;
    min-height: 100vh;
}

/* Шапка */
.header {
    grid-area: header;
    background: var(--bg-secondary);
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px var(--shadow-color);
    gap: 15px;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    overflow: visible;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 120px;
}

.logo-image {
    height: 40px;
    width: auto;
    border-radius: 10px;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(45deg, #60a5fa, #3b82f6, #6366f1, #8b5cf6, #60a5fa);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    white-space: nowrap;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Навигационная цепочка */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin: 0 auto;
    flex: 1;
    justify-content: center;
    min-width: 0;
    overflow: visible;
    white-space: nowrap;
    max-width: none;
    height: 100%;
}

.breadcrumb-item {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    line-height: 1.2;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 4px;
}

.breadcrumb-item.active {
    color: var(--text-accent);
    font-weight: 600;
    background: rgba(96, 165, 250, 0.1);
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #64748b;
    flex-shrink: 0;
}

/* ХОВЕР ЭФФЕКТЫ */
.breadcrumb-item:hover:not(.active) {
    color: var(--text-accent);
    background: rgba(96, 165, 250, 0.05);
}

/* Основной контент */
.main {
    grid-area: main;
}

.sidebar {
    grid-area: sidebar;
    display: block !important;
}

.sidebar[style*="display: none"] {
    display: block !important;
}

/* Карточки */
.schedule, .news, .user-profile, .admin-panel {
    background: var(--card-bg);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Профиль пользователя */
.user-profile {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    min-height: 250px;
    height: auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.2);
}

.profile-banner {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    z-index: 1 !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    pointer-events: none !important;
}

.profile-banner.gradient-1 {
    background: linear-gradient(45deg, #60a5fa, #3b82f6, #6366f1, #8b5cf6) !important;
    animation: gradientShift 8s ease infinite !important;
    filter: blur(4px) !important;
    opacity: 0.8 !important;
}

.profile-banner.gradient-2 {
    background: linear-gradient(45deg, #ec4899, #8b5cf6, #06b6d4, #10b981) !important;
    animation: gradientShift 8s ease infinite !important;
    filter: blur(4px) !important;
    opacity: 0.8 !important;
}

.profile-banner.gradient-3 {
    background: linear-gradient(45deg, #f59e0b, #ef4444, #8b5cf6, #06b6d4) !important;
    animation: gradientShift 8s ease infinite !important;
    filter: blur(4px) !important;
    opacity: 0.8 !important;
}

.profile-banner.custom-photo {
    filter: blur(6px) brightness(0.9) !important;
    opacity: 0.9 !important;
    animation: none !important;
}

.profile-info {
    position: relative;
    padding: 20px;
    text-align: center;
    z-index: 2;
    margin-top: 0;
    min-height: 150px;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(5px);
    margin-bottom: 10px;
}

.user-profile h3 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 18px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.group {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.star {
    font-size: 16px;
    color: #fbbf24;
}

.score {
    font-weight: bold;
    color: #fbbf24;
}

.profile-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.logout-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    background: rgba(239, 68, 68, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border: none;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Полный профиль */
.full-profile {
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.profile-card {
    width: 100%;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.3);
    backdrop-filter: blur(10px);
}

.profile-banner-large {
    height: 200px;
    background: linear-gradient(45deg, #60a5fa, #3b82f6, #6366f1, #8b5cf6);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
}

.profile-info-large {
    text-align: center;
    padding: 30px;
    position: relative;
    margin-top: -60px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(30, 41, 59, 0.9);
    background: rgba(30, 41, 59, 0.9);
    margin-bottom: 20px;
}

.profile-info-large h3 {
    color: white;
    font-size: 1.8rem;
    margin: 0 0 8px 0;
}

.profile-group-large {
    color: #94a3b8;
    margin: 0 0 25px 0;
    font-size: 1.1rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #60a5fa;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 5px;
}

.profile-actions-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-action-btn {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #e2e8f0;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.profile-action-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    transform: translateY(-3px);
    border-color: #60a5fa;
}

.profile-action-btn.logout {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.profile-action-btn.logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* Новости */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #60a5fa;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }

.news-item.has-image {
    position: relative;
}

.news-item.has-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    filter: blur(8px);
    z-index: -1;
    border-radius: 12px;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-date {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.news-views {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-item p {
    margin: 0;
    color: #e2e8f0;
    line-height: 1.5;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.news-item a {
    color: #60a5fa;
    text-decoration: none;
}

.news-item a:hover {
    text-decoration: underline;
}

.news-views::before {
    content: "👁";
    margin-right: 4px;
}

/* Расписание */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.week-switcher {
    display: flex;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #334155;
}

.week-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.week-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.week-btn:hover::before {
    left: 100%;
}

.week-btn.active {
    background: #60a5fa;
    color: white;
}

.week-btn:hover:not(.active) {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.3);
}

.schedule-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.schedule-day {
    background: rgba(30, 41, 59, 0.6);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #60a5fa;
    transition: transform 0.2s ease;
}

.schedule-day:hover {
    transform: translateY(-2px);
}

.schedule-day h4 {
    margin: 0 0 10px 0;
    color: #60a5fa;
    border-bottom: 1px solid #334155;
    padding-bottom: 5px;
}

.schedule-day p {
    margin: 8px 0;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.4;
}

.schedule-day .time {
    color: #94a3b8;
    font-size: 12px;
}

/* Админка */
.admin-panel {
    background: rgba(30, 41, 59, 0.8);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #334155;
}

.admin-header h2 {
    margin: 0;
    color: #60a5fa;
}

.admin-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #334155;
}

.admin-section h3 {
    color: #60a5fa;
    margin-bottom: 15px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 10px 20px;
    background: #60a5fa;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

.admin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.admin-btn:hover::before {
    left: 100%;
}

.admin-btn:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.3);
}

.group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #60a5fa;
    animation: fadeInUp 0.6s ease-out;
}

.group-item:nth-child(1) { animation-delay: 0.1s; }
.group-item:nth-child(2) { animation-delay: 0.2s; }
.group-item:nth-child(3) { animation-delay: 0.3s; }

.group-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.action-btn:hover::after {
    width: 40px;
    height: 40px;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn.edit:hover {
    background: rgba(34, 197, 94, 0.2);
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background: rgba(30, 41, 59, 0.6);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #334155;
}

.stat-card h4 {
    margin: 0 0 10px 0;
    color: #94a3b8;
    font-size: 14px;
}

.stat-card span {
    font-size: 24px;
    font-weight: bold;
    color: #60a5fa;
}

/* Модалки */
.easter-modal, .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background: rgba(30, 41, 59, 0.9);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #60a5fa;
    animation: scaleUp 0.5s ease;
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #60a5fa;
}

.dev-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(96, 165, 250, 0.2);
    border-radius: 10px;
    text-decoration: none;
    color: #e2e8f0;
    margin-top: 20px;
    transition: all 0.3s;
}

.dev-link:hover {
    background: rgba(96, 165, 250, 0.4);
    transform: translateY(-2px);
}

.dev-link img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

/* Модалка просмотра поста */
.post-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.post-modal-content {
    background: #1e293b;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.post-modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.post-modal-text {
    padding: 25px;
    color: #e2e8f0;
    line-height: 1.6;
}

.post-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #334155;
}

.post-modal-date {
    color: #94a3b8;
    font-size: 14px;
}

.post-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.post-modal-close:hover {
    color: #60a5fa;
}

.post-modal-stats {
    display: flex;
    gap: 20px;
    padding: 15px 25px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 14px;
}

/* Регистрация */
#register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#register-form input,
#register-form select {
    padding: 12px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 16px;
    transition: all 0.3s ease;
}

#register-form input:focus, #register-form select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
    transform: translateY(-2px);
}

#register-form button {
    padding: 12px;
    background: #60a5fa;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

#register-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

#register-form button:hover::before {
    left: 100%;
}

#register-form button:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.3);
}

.auth-tabs {
    display: flex;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid #334155;
}

.tab-btn {
    padding: 10px 16px;
    background: none;
    border: none;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: #60a5fa;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

/* Параллакс контейнер */
.parallax-container {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.parallax-layer {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    pointer-events: none;
    transition: transform 0.15s cubic-bezier(0.1, 0.7, 0.3, 1);
}

.parallax-layer:nth-child(1) {
    background: 
        radial-gradient(circle at 20% 80%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
    z-index: 1;
}

.parallax-layer:nth-child(2) {
    background:
        radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
    z-index: 2;
}

.container {
    position: relative;
    z-index: 3;
}

/* Кастомные курсоры */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cursor-ring {
    width: 24px;
    height: 24px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Стрелочка (скрыта по умолчанию) */
.cursor-arrow {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid #60a5fa;
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Состояния курсора - превращение в стрелочку */
.cursor-hover .cursor-dot {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.cursor-hover .cursor-ring {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.cursor-hover .cursor-arrow {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
}

/* Эффекты при клике */
.cursor-click .cursor-arrow {
    border-top-color: #ef4444;
    transform: translate(-50%, -40%) scale(0.8) rotate(0deg);
}

/* Интро-экран загрузки */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.intro-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.intro-title {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.intro-title.move-left {
    transform: translateX(-200px) translateY(0) scale(0.7);
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.intro-subtitle {
    font-size: 1.5rem;
    color: #888888;
    margin: 0;
    min-height: 2rem;
    font-family: 'Courier New', monospace;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.intro-subtitle.show {
    opacity: 1;
    transform: translateY(0);
}

/* Курсор мигания для подзаголовка */
.intro-subtitle::after {
    content: '|';
    animation: blink 1s infinite;
    color: #888888;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Футер */
.site-footer {
    grid-area: footer;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.footer-text {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
    animation: textChange 9s infinite;
}

@keyframes textChange {
    0%, 33% { content: "Digital SMTU Production 2025"; }
    34%, 66% { content: "Цифровик для ФЦПТ"; }
    67%, 100% { content: "by midcrrnt, mavmak - 2025"; }
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        grid-template-areas: 
            "header"
            "main"
            "sidebar"
            "footer";
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }
    
    .header {
        height: 50px;
        min-height: 50px;
        max-height: 50px;
        padding: 8px 15px;
        gap: 10px;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .breadcrumb-item {
        padding: 3px 6px;
    }
    
    .breadcrumb-item.active {
        max-width: 70px;
    }
    
    .logo {
        min-width: 100px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .intro-title {
        font-size: 2.5rem;
    }
    
    .intro-title.move-left {
        font-size: 2rem;
        transform: translateX(-100px) scale(0.7);
    }
    
    .intro-subtitle {
        font-size: 1.2rem;
    }
    
    .profile-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .profile-actions-large {
        grid-template-columns: 1fr;
    }
    
    .profile-avatar-large {
        width: 80px;
        height: 80px;
    }
    
    .schedule-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .week-switcher {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header {
        height: 45px;
        min-height: 45px;
        max-height: 45px;
        padding: 6px 12px;
    }

    .logo {
        min-width: 80px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .breadcrumb-item {
        padding: 2px 4px;
    }
    
    .breadcrumb-item.active {
        max-width: 50px;
    }
}

/* Базовые стили для параллакс элементов */
.schedule, 
.news, 
.user-profile, 
.admin-panel, 
.full-profile, 
.profile-card {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    will-change: transform;
    transform-style: preserve-3d;
}

/* Ховер эффекты ТОЛЬКО для десктопа */
@media (min-width: 1024px) {
    .schedule:hover, 
    .news:hover, 
    .user-profile:hover {
        transform: translateY(-8px) scale(1.02) !important;
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(96, 165, 250, 0.1);
        z-index: 10;
    }
}

/* Параллакс слои */
.parallax-layer {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    will-change: transform;
}

/* Гарантия что кастомный курсор поверх всего */
.custom-cursor {
    z-index: 100000 !important;
}

/* ФИКС АВАТАРА В НАСТРОЙКАХ */
.avatar-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #60a5fa;
    background: rgba(30, 41, 59, 0.8);
}

#avatar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-upload {
    text-align: center;
    margin-bottom: 20px;
}

.avatar-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.avatar-hint {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 10px;
}

/* Стили для превью фонов */
.bg-preview {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.bg-option.active .bg-preview {
    border-color: #60a5fa;
}

.bg-option {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.bg-option:hover {
    background: rgba(96, 165, 250, 0.1);
}

.bg-option span {
    font-size: 12px;
    color: #94a3b8;
}

/* Стили для настроек */
.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #334155;
}

.settings-section h4 {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.settings-tabs {
    display: flex;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid #334155;
}

.settings-tab-btn {
    padding: 10px 16px;
    background: none;
    border: none;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    flex: 1;
}

.settings-tab-btn.active {
    background: #60a5fa;
    color: white;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

.settings-actions {
    margin-top: 30px;
    text-align: center;
}

/* Стили для выбора темы */
.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.theme-option {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.theme-option.active {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.theme-option:hover {
    background: rgba(96, 165, 250, 0.05);
}

.theme-preview {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    margin: 0 auto 8px;
    border: 2px solid #334155;
}

.theme-preview.dark-theme {
    background: #0f172a;
}

.theme-preview.light-theme {
    background: #f8fafc;
}

.theme-preview.auto-theme {
    background: linear-gradient(45deg, #0f172a 50%, #f8fafc 50%);
}

.theme-option span {
    font-size: 12px;
    color: #94a3b8;
}

/* Стили для выбора фона */
.background-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.bg-preview {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.bg-option.active .bg-preview {
    border-color: #60a5fa;
}

.bg-option {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.bg-option:hover {
    background: rgba(96, 165, 250, 0.1);
}

.bg-option span {
    font-size: 12px;
    color: #94a3b8;
}

.modal-content {
    max-width: 500px;
    height: auto;
    max-height: 90vh;
    overflow: visible;
}

.settings-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

.settings-content::-webkit-scrollbar {
    width: 6px;
}

.settings-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

/* Новые градиенты для фонов */
.bg-preview.gradient-4 {
    background: linear-gradient(45deg, #10b981, #059669, #047857, #065f46) !important;
}

.bg-preview.gradient-5 {
    background: linear-gradient(45deg, #ec4899, #db2777, #be185d, #9d174d) !important;
}

.bg-preview.gradient-6 {
    background: linear-gradient(45deg, #06b6d4, #0891b2, #0e7490, #155e75) !important;
}

/* Улучшаем отображение фонов */
.background-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bg-preview {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bg-preview.custom-upload {
    background: rgba(30, 41, 59, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.bg-preview.custom-upload span {
    color: #94a3b8;
}

/* Стили для карточек привязок */
.connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.connection-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.connection-card:hover {
    border-color: #475569;
    transform: translateY(-2px);
}

.connection-card.disabled {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.connection-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.connection-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 8px;
}

.connection-info {
    flex: 1;
}

.connection-name {
    display: block;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.connection-status {
    display: block;
    font-size: 12px;
    color: #94a3b8;
}

.connection-description {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 15px;
    line-height: 1.4;
}

.connection-btn {
    width: 100%;
    padding: 10px;
    background: rgba(71, 85, 105, 0.5);
    color: #94a3b8;
    border: 1px solid #475569;
    border-radius: 8px;
    cursor: not-allowed;
    font-size: 14px;
}

.connection-btn:disabled {
    opacity: 0.5;
}

.beta-notice {
    text-align: center;
    padding: 15px;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
    font-size: 14px;
}

/* Стили для новой системы регистрации */
.auth-fields {
    display: none;
}

.auth-fields.active {
    display: block;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn.guest {
    background: #475569;
    color: white;
}

.auth-btn.telegram {
    background: #0088cc;
    color: white;
}

.auth-btn.student {
    background: #60a5fa;
    color: white;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.telegram-hint {
    text-align: center;
    margin-top: 10px;
    color: #94a3b8;
    font-size: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.form-group label {
    align-self: flex-start;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 14px;
    width: 100%;
    text-align: left;
}

/* Стили для новой системы аутентификации */
.auth-selection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    padding: 20px 0;
}

.auth-options {
    margin: 20px 0;
}

.auth-option {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-option:hover {
    border-color: #60a5fa;
    transform: translateX(5px);
}

.auth-option.guest {
    opacity: 0.8;
}

.auth-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.auth-info {
    flex: 1;
    text-align: left;
}

.auth-title {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 2px;
}

.auth-desc {
    font-size: 12px;
    color: #94a3b8;
}

.auth-arrow {
    color: #94a3b8;
    font-size: 18px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    padding: 20px 0;
}

.auth-back {
    text-align: left;
    color: #60a5fa;
    cursor: pointer;
    margin-bottom: 15px;
    font-size: 14px;
}

.auth-back:hover {
    text-decoration: underline;
}

.auth-input, .auth-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 15px;
}

.auth-input:focus, .auth-select:focus {
    border-color: #60a5fa;
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.auth-btn.primary {
    background: #60a5fa;
    color: white;
}

.auth-btn.secondary {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border: 1px solid #60a5fa;
}

.auth-btn.telegram-btn {
    background: #0088cc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

.auth-btn.guest-btn {
    background: #475569;
    color: white;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.auth-divider {
    margin: 20px 0;
    position: relative;
    text-align: center;
    color: #94a3b8;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #334155;
}

.auth-divider span {
    background: #1e293b;
    padding: 0 15px;
    position: relative;
}

.telegram-promo, .guest-warning {
    background: rgba(30, 41, 59, 0.6);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: left;
}

.telegram-promo ul, .guest-warning ul {
    margin: 10px 0;
    padding-left: 20px;
}

.telegram-promo li, .guest-warning li {
    margin: 5px 0;
    font-size: 14px;
    color: #94a3b8;
}

.auth-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 15px;
}

.alternative-auth {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #334155;
}

/* Курсоры для всех интерактивных элементов */
.auth-option,
.auth-btn,
.auth-back,
.close-btn,
.connection-btn,
.bg-option,
.theme-option {
    cursor: pointer !important;
}

/* Трансформация курсора при наведении на кнопки */
.auth-option:hover,
.auth-btn:hover,
.bg-option:hover,
.theme-option:hover {
    cursor: pointer !important;
}

/* Специфичные курсоры для разных типов кнопок */
.auth-btn:disabled,
.connection-btn:disabled {
    cursor: not-allowed !important;
}

.auth-input,
.auth-select {
    cursor: text !important;
}

/* Анимации при наведении для лучшей обратной связи */
.auth-option {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-option:hover {
    transform: translateX(5px);
    border-color: #60a5fa;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.auth-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Эффект "волны" при нажатии */
.auth-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.auth-btn:active::after {
    width: 100px;
    height: 100px;
}

/* Стили для кнопки закрытия */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    transform: rotate(90deg);
}

/* Стили для кнопки "Назад" */
.auth-back {
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
}

.auth-back:hover {
    background: rgba(96, 165, 250, 0.1);
    transform: translateX(-3px);
}

/* Курсоры для выбора фона и темы */
.bg-option,
.theme-option {
    transition: all 0.3s ease;
}

.bg-option:hover,
.theme-option:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Курсоры для карточек привязок */
.connection-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.connection-card:hover:not(.disabled) {
    transform: translateY(-3px);
    border-color: #60a5fa;
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.15);
}

.connection-card.disabled {
    cursor: not-allowed;
}

/* Улучшаем визуальную обратную связь для инпутов */
.auth-input:focus,
.auth-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
    transform: translateY(-1px);
}

/* Анимация появления модалки */
.modal-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Анимация для переключения между формами */
.auth-form {
    animation: formFadeIn 0.3s ease;
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ФИКС ДЛЯ МОДАЛКИ РЕГИСТРАЦИИ */
#register-modal .modal-content {
    position: relative !important;
    width: 90% !important;
    max-width: 400px !important;
    min-height: 400px !important;
    margin: auto !important;
    background: rgba(30, 41, 59, 0.95) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    overflow: visible !important;
}

/* Новые стили для редактора расписания */
.schedule-editor-header {
    background: rgba(30, 41, 59, 0.8);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #334155;
}

.schedule-editor-header h4 {
    margin: 0 0 15px 0;
    color: #60a5fa;
    font-size: 1.2rem;
}

.editor-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.week-selector {
    display: flex;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #334155;
}

.week-tab-btn {
    padding: 10px 16px;
    background: none;
    border: none;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.week-tab-btn.active {
    background: #60a5fa;
    color: white;
}

.week-tab-btn:hover:not(.active) {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

.schedule-editor-body {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #334155;
    margin-bottom: 20px;
}

.week-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.day-column {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.day-column:hover {
    border-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.1);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #334155;
}

.day-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-icon {
    font-size: 18px;
}

.day-name {
    font-weight: 600;
    color: #e2e8f0;
}

.day-actions {
    display: flex;
    gap: 5px;
}

.subjects-container {
    min-height: 100px;
    max-height: 400px;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #94a3b8;
}

.empty-state span {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.add-first-btn {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border: 1px solid #60a5fa;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.add-first-btn:hover {
    background: rgba(96, 165, 250, 0.2);
}

.subject-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.subject-card:hover {
    border-color: #60a5fa;
}

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.subject-number {
    background: #60a5fa;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.subject-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group {
    position: relative;
}

.field-group label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 500;
}

.subject-fields input {
    width: 100%;
    padding: 8px;
    border: 1px solid #475569;
    border-radius: 6px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 13px;
}

.subject-fields input:focus {
    border-color: #60a5fa;
    outline: none;
}

.subject-preview {
    margin-top: 8px;
    padding: 8px;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 4px;
    font-size: 12px;
    color: #94a3b8;
    border-left: 3px solid #60a5fa;
}

.day-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #334155;
}

.pair-count {
    font-size: 12px;
    color: #94a3b8;
}

.add-more-btn {
    background: none;
    border: 1px dashed #475569;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.add-more-btn:hover {
    border-color: #60a5fa;
    color: #60a5fa;
}

.editor-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-actions {
    background: rgba(30, 41, 59, 0.6);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #334155;
}

.quick-actions h5 {
    margin: 0 0 10px 0;
    color: #94a3b8;
    font-size: 14px;
}

.quick-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-btn {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.quick-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
    color: #60a5fa;
}

/* Стили для кнопок действий */
.admin-btn.success {
    background: #10b981;
}

.admin-btn.success:hover {
    background: #059669;
}

.admin-btn.danger {
    background: #ef4444;
}

.admin-btn.danger:hover {
    background: #dc2626;
}

/* Подсказки */
.time-suggestions,
.subject-suggestions,
.room-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 6px;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #334155;
}

.suggestion-item:hover {
    background: rgba(96, 165, 250, 0.1);
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Стили для переключения недель */
.week-editor {
    display: none;
}

.week-editor.active {
    display: block;
}

.week-tab-btn {
    padding: 10px 15px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.week-tab-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.week-tab-btn:hover:not(.active) {
    background: #334155;
    border-color: #475569;
}

.week-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Стили для выпадающих списков в стиле сайта */
.auth-select, .auth-input, select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid #334155;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.auth-select:focus, .auth-input:focus, select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
    background-color: rgba(30, 41, 59, 0.9);
}

.auth-select:hover, select:hover {
    border-color: #475569;
    background-color: rgba(30, 41, 59, 0.9);
}

/* Стили для опций в выпадающем списке */
.auth-select option, select option {
    background: #1e293b;
    color: #e2e8f0;
    padding: 12px;
    border: none;
}

.auth-select option:hover, select option:hover {
    background: #3b82f6 !important;
    color: white !important;
}

.auth-select option:checked, select option:checked {
    background: #3b82f6;
    color: white;
}

/* Специфичные стили для селектов в админке */
#edit-schedule-group, #guest-group, #reg-group, #student-reg-group {
    width: 100%;
    margin: 10px 0;
}

/* Стили для полей ввода */
.auth-input {
    background-image: none;
}

.auth-input::placeholder {
    color: #64748b;
}

/* Анимация при фокусе */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 14px;
}

/* Кастомный скролл для выпадающих списков */
.auth-select::-webkit-scrollbar, select::-webkit-scrollbar {
    width: 8px;
}

.auth-select::-webkit-scrollbar-track, select::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 4px;
}

.auth-select::-webkit-scrollbar-thumb, select::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.auth-select::-webkit-scrollbar-thumb:hover, select::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}

/* НОВАЯ СЕТКА ДЛЯ РЕДАКТОРА РАСПИСАНИЯ */
.week-schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 20px;
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.day-column {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid #334155;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.day-column:hover {
    border-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #334155;
}

.day-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-icon {
    font-size: 1.2em;
}

.day-name {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 16px;
}

.day-actions {
    display: flex;
    gap: 5px;
}

/* Стили для карточек пар */
.subjects-container {
    flex: 1;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Кастомный скролл для контейнера пар */
.subjects-container::-webkit-scrollbar {
    width: 6px;
}

.subjects-container::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 3px;
}

.subjects-container::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.subjects-container::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}

.subject-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.subject-card:hover {
    border-color: #60a5fa;
    background: rgba(15, 23, 42, 0.8);
}

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.subject-number {
    background: #3b82f6;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.subject-actions {
    display: flex;
    gap: 5px;
}

.action-btn {
    background: none;
    border: 1px solid #475569;
    border-radius: 5px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.action-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: scale(1.1);
}

.subject-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-group label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.subject-time, .subject-name, .subject-room {
    width: 100%;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 13px;
}

.subject-time:focus, .subject-name:focus, .subject-room:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

.subject-preview {
    margin-top: 10px;
    padding: 8px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 6px;
    font-size: 12px;
    color: #cbd5e1;
    border-left: 3px solid #3b82f6;
}

/* Состояние когда нет пар */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: #64748b;
    text-align: center;
}

.empty-state span {
    font-size: 2em;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 15px;
    font-size: 14px;
}

.add-first-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.add-first-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Футер дня */
.day-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #334155;
    font-size: 12px;
}

.pair-count {
    color: #94a3b8;
}

.add-more-btn {
    background: none;
    border: 1px solid #475569;
    color: #60a5fa;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
}

.add-more-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* КАСТОМНЫЕ СКРОЛЛЫ ДЛЯ ВСЕГО САЙТА */

/* Для вебкит браузеров (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #475569, #334155);
    border-radius: 6px;
    border: 2px solid rgba(15, 23, 42, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

::-webkit-scrollbar-corner {
    background: rgba(15, 23, 42, 0.8);
}

/* Для Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #475569 #0f172a;
}

/* Специфичные скроллы для разных контейнеров */

/* Скролл для модальных окон */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

/* Скролл для редактора расписания */
.week-schedule-grid::-webkit-scrollbar {
    width: 8px;
}

.week-schedule-grid::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 4px;
}

.week-schedule-grid::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

/* Скролл для контейнера пар */
.subjects-container::-webkit-scrollbar {
    width: 6px;
}

.subjects-container::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 3px;
}

.subjects-container::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.subjects-container::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}

/* Скролл для сайдбара */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

/* Скролл для новостной ленты */
.news-feed::-webkit-scrollbar {
    width: 6px;
}

.news-feed::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 3px;
}

.news-feed::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

/* Плавный скролл для всего сайта */
html {
    scroll-behavior: smooth;
}

/* Стили для элементов с переполнением */
.schedule-content, .admin-panel, .settings-content, .connections-grid {
    scrollbar-width: thin;
    scrollbar-color: #475569 #1e293b;
}

/* Анимация появления скролла */
.modal-content, .subjects-container, .week-schedule-grid {
    transition: scrollbar-color 0.3s ease;
}

/* Темная тема для скроллов */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.9);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #475569, #334155);
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.9);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

/* Скрытие скролла при отсутствии контента */
.no-scroll::-webkit-scrollbar {
    display: none;
}

.no-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Кастомный скролл для выпадающих списков */
.auth-select::-webkit-scrollbar, select::-webkit-scrollbar {
    width: 6px;
}

.auth-select::-webkit-scrollbar-track, select::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 3px;
}

.auth-select::-webkit-scrollbar-thumb, select::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.auth-select::-webkit-scrollbar-thumb:hover, select::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}

.auth-form h3, .auth-selection h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #e2e8f0;
}

.custom-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.custom-alert-content {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.alert-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.alert-message {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.alert-ok-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.notifications-wrapper {
    position: relative;
}

.notifications-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

.notifications-icon:hover {
    background: rgba(96, 165, 250, 0.1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.notifications-dropdown.show {
    display: block;
}

.notifications-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h4 {
    margin: 0;
    color: var(--text-primary);
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.8rem;
}

.notifications-list {
    padding: 10px;
}

.notification-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--bg-primary);
    border-left: 4px solid var(--accent-color);
    cursor: pointer;
    transition: background 0.3s;
}

.notification-item:hover {
    background: var(--bg-secondary);
}

.notification-item.unread {
    background: rgba(96, 165, 250, 0.1);
    border-left-color: #3b82f6;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 20px;
    height: 20px;
}

.update-details {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid var(--accent-color);
}

.update-details p {
    margin: 10px 0;
    color: var(--text-primary);
    line-height: 1.4;
}

.update-details a {
    color: var(--accent-color);
    text-decoration: none;
}

.update-details strong {
    color: var(--text-accent);
}

.update-details {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid var(--accent-color);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.update-meta {
    flex: 1;
}

.meta-item {
    margin: 5px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item strong {
    color: var(--text-primary);
}

.commit-link {
    background: var(--accent-color);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.commit-link:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.update-content h4 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.commit-message {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    line-height: 1.5;
    color: var(--text-primary);
    max-height: 300px;
    overflow-y: auto;
}

.commit-message code {
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent-color);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.student-tools {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.tool-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
}

.tool-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* 5. Стили для нового блока и модалки */
.quick-actions {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.quick-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    gap: 5px;
}

.quick-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.quick-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

/* Стили для модалки ДЗ */
.homework-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.homework-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.homework-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.homework-filters select,
.homework-filters input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.homework-list {
    max-height: 400px;
    overflow-y: auto;
}

.homework-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.homework-item:hover {
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.homework-item.completed {
    opacity: 0.7;
    background: var(--bg-primary);
}

.homework-item.completed .hw-task {
    text-decoration: line-through;
}

.hw-subject {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.hw-task {
    margin-bottom: 8px;
    line-height: 1.4;
}

.hw-deadline {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.hw-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Дополнительные стили */
.hw-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.hw-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

.imported-badge {
    background: var(--accent-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.hw-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.hw-actions {
    display: flex;
    gap: 5px;
}

.action-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--bg-primary);
    transform: scale(1.1);
}

.action-btn.completed {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.action-btn.edit:hover {
    background: var(--warning-color);
    border-color: var(--warning-color);
}

.action-btn.delete:hover {
    background: var(--error-color);
    border-color: var(--error-color);
}

.no-data, .error-data {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.no-data span, .error-data span {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.admin-notes {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Стили для модалки импорта */
.import-guide {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
}

.import-guide ol {
    margin: 10px 0;
    padding-left: 20px;
}

.import-guide li {
    margin-bottom: 5px;
}

.sheet-structure {
    margin-top: 15px;
}

.structure-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 12px;
}

.structure-table th,
.structure-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: left;
}

.structure-table th {
    background: var(--bg-primary);
    font-weight: bold;
}

.import-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.import-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.import-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.import-status {
    margin-top: 15px;
    min-height: 60px;
}

.import-loading {
    color: var(--accent-color);
    text-align: center;
    padding: 15px;
}

.import-success {
    color: var(--success-color);
    text-align: center;
    padding: 15px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
}

.import-error {
    color: var(--error-color);
    text-align: center;
    padding: 15px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
}

/* Добавляем стили для инструкций */
.publish-steps {
    margin: 20px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.step-number {
    background: var(--accent-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    margin-bottom: 5px;
}

.publish-note {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
}

.help-btn {
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.help-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* Стили для настроек уведомлений */
.notification-settings {
    margin-top: 20px;
}

.notification-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 10px;
}

.notification-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.notification-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.notification-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.notification-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.notification-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.notification-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .notification-slider {
    background-color: var(--accent-color);
}

input:checked + .notification-slider:before {
    transform: translateX(26px);
}

.permission-status {
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    text-align: center;
}

.permission-granted {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.permission-denied {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.permission-default {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}