/* Custom Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 80px; /* Space for bottom navigation */
}

/* Navigation Tabs */
.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    color: #6b7280;
    flex: 1;
}

.nav-tab.active {
    color: #2563eb;
    background: #eff6ff;
}

.nav-tab:hover {
    background: #f3f4f6;
}

.nav-tab.active:hover {
    background: #eff6ff;
}

/* Filter Buttons */
.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: #6b7280;
}

.filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Deadline Cards */
.deadline-card {
    border-left: 4px solid;
    transition: transform 0.2s;
}

.deadline-card:hover {
    transform: translateX(4px);
}

.deadline-priority-1 {
    border-left-color: #10b981;
}

.deadline-priority-2 {
    border-left-color: #f59e0b;
}

.deadline-priority-3 {
    border-left-color: #ef4444;
}

.deadline-priority-4 {
    border-left-color: #dc2626;
}

/* Timetable */
.timetable-cell {
    min-height: 60px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.timetable-cell:hover {
    background: #f3f4f6;
}

.timetable-cell.has-class {
    background: #dbeafe;
}

.timetable-cell.has-class:hover {
    background: #bfdbfe;
}

/* Week Calendar */
.week-day {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
}

.week-day.today {
    background: #dbeafe;
    border-color: #2563eb;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .nav-tab span:last-child {
        font-size: 10px;
    }
    
    table {
        font-size: 14px;
    }
    
    .timetable-cell {
        min-height: 50px;
        padding: 4px;
        font-size: 12px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Toast Notification */
#toast {
    animation: slideInRight 0.3s ease-out;
    border-left-color: #10b981;
}

#toast.hidden {
    display: none;
}

#toast.error {
    border-left-color: #ef4444;
}

#toast.warning {
    border-left-color: #f59e0b;
}

#toast.info {
    border-left-color: #3b82f6;
}

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

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

#toast.closing {
    animation: slideOutRight 0.3s ease-in;
}

