@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

body.dark-theme {
    background-color: #0f172a;
    color: #e2e8f0;
}

body.light-theme {
    background-color: #ffffff;
    color: #1e293b;
}

.gradient-bg {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.light-theme .gradient-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.schedule-day, .nav-button {
    background-color: #1e293b;
    color: #e2e8f0;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    padding: 12px 16px !important;
}

.schedule-day:hover, .nav-button:hover {
    background-color: #334155;
}

.schedule-day.active, .nav-button.active {
    background-color: #3b82f6;
    color: white;
}

.light-theme .schedule-day, .light-theme .nav-button {
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.light-theme .schedule-day:hover, .light-theme .nav-button:hover {
    background-color: #f1f5f9;
}

.light-theme .schedule-day.active, .light-theme .nav-button.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3b82f6;
    border: 2px solid #1e293b;
}

.light-theme .timeline-item::before {
    border: 2px solid #ffffff;
}

.timeline-connector {
    position: absolute;
    left: -13px;
    top: 10px;
    bottom: -12px;
    width: 2px;
    background: #334155;
}

.light-theme .timeline-connector {
    background: #e2e8f0;
}

.light-theme {
    color: #1e293b;
}

.light-theme .bg-gray-800 {
    background-color: #ffffff;
}

.light-theme .border-gray-800 {
    border-color: #e2e8f0;
}

.light-theme .border-gray-700 {
    border-color: #e2e8f0;
}

.light-theme .text-gray-400 {
    color: #64748b;
}

.light-theme .text-gray-300 {
    color: #475569;
}

.light-theme .text-gray-200 {
    color: #1e293b;
}

.light-theme .text-white {
    color: #1e293b;
}

.light-theme .bg-gray-900 {
    background-color: #f8fafc;
}

.conference-button {
    background-color: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.conference-button:hover {
    background-color: #2563eb;
}

.group-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.group-modal-content {
    background-color: #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #334155;
}

.group-bases-grid, .group-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.group-base-button, .group-detail-button {
    background-color: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    padding: 12px 16px !important;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

.group-base-button:hover, .group-detail-button:hover {
    background-color: #334155;
    border-color: #475569;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.back-button {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: #334155;
    color: #e2e8f0;
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #4b5563 #1f2937;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.light-theme .custom-scrollbar {
    scrollbar-color: #d1d5db #f3f4f6;
}

.light-theme .custom-scrollbar::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.light-theme .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d5db;
}

.light-theme .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.empty-schedule {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    padding: 2rem 1rem !important;
}

.space-y-6.relative {
    padding-left: 0 !important;
}

@media (max-width: 640px) {
    .group-bases-grid, .group-details-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .group-modal-content {
        margin: 1rem;
        padding: 1rem;
    }
    
    .timeline-item::before {
        left: -14px;
        width: 8px;
        height: 8px;
    }
    
    .timeline-connector {
        left: -11px;
    }
    
    body {
        padding-right: 0 !important;
    }
    
    .mx-0 {
        margin-left: 0;
        margin-right: 0;
    }
    
    .empty-schedule {
        padding: 2rem 0.5rem !important;
    }
}