/* Import EB Garamond and Montserrat fonts */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Global font settings */
body {
    font-family: 'Montserrat', sans-serif;
}

/* Reusable font classes */
.font-eb-garamond {
    font-family: 'EB Garamond', serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

/* Apply EB Garamond as the default font globally */
body {
  font-family: "EB Garamond", sans-serif;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .chart-container {
        height: 250px;
        max-width: 100%;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 640px) {
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

.section {
    min-height: 60vh;
}

.nav-btn.active {
    color: #d97706;
    background-color: #fef3c7;
}

.task-item {
    transition: all 0.2s ease;
}

.task-item.completed {
    opacity: 0.6;
}

.task-item.due-today {
    border-left: 4px solid #d97706;
    background-color: #fef3c7;
}

.week-btn {
    transition: all 0.2s ease;
}

.week-btn:hover {
    transform: translateY(-1px);
}

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

/* Enhanced progress tracking styles */
.progress-ring {
    transition: stroke-dasharray 0.3s ease;
}

.circular-progress {
    position: relative;
    width: 80px;
    height: 80px;
}

.streak-bar {
    display: flex;
    align-items: center;
}

.streak-day {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 2px;
    transition: all 0.3s ease;
}

.streak-day.active {
    background-color: #8B5CF6;
}

.streak-day.inactive {
    background-color: #E5E7EB;
}

.task-priority-high {
    border-left: 3px solid #ef4444;
}

.task-priority-medium {
    border-left: 3px solid #f59e0b;
}

.task-priority-low {
    border-left: 3px solid #10b981;
}

.task-duration {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 11px;
}

.task-module-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.task-module-cs50 {
    background-color: #dbeafe;
    color: #1e40af;
}

.task-module-dsa {
    background-color: #dcfce7;
    color: #166534;
}

.task-module-devs {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
}

.status-complete {
    background-color: #dcfce7;
    color: #166534;
}

.status-in-progress {
    background-color: #fef3c7;
    color: #92400e;
}

.status-not-started {
    background-color: #f3f4f6;
    color: #4b5563;
}

.status-overdue {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Module detail modal styles */
.module-metric {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.cs50-metric {
    background-color: #dbeafe;
    border: 1px solid #bfdbfe;
}

.dsa-metric {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
}

.devs-metric {
    background-color: #f3e8ff;
    border: 1px solid #e9d5ff;
}
