/* Ramadan Tracker Specific Styles */

/* Ramadan Status Banner */
.ramadan-status-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d2137 100%);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.ramadan-status-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: shimmer 10s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.status-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #1e3a5f;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.8); }
}

.status-text h2 {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 5px;
    font-weight: 700;
}

.status-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Countdown Section */
.countdown-section {
    position: relative;
    z-index: 2;
}

.countdown-label {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 10px 20px;
    border-radius: 12px;
    min-width: 80px;
    border: 2px solid var(--border);
}

.time-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
    text-transform: uppercase;
}

.time-separator {
    font-size: 2rem;
    color: var(--accent);
    font-weight: bold;
}

/* Pre-Ramadan Banner */
.pre-ramadan-banner {
    background: linear-gradient(135deg, #2d1f4e 0%, #1a1035 100%);
    border: 2px solid #9333ea;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 25px;
    text-align: center;
}

.pre-ramadan-content i {
    font-size: 3rem;
    color: #9333ea;
    margin-bottom: 15px;
}

.pre-ramadan-content h2 {
    font-size: 1.8rem;
    color: #c084fc;
    margin-bottom: 20px;
}

.days-countdown {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.days-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.days-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Times Section */
.times-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.time-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.time-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.suhoor-card::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.iftar-card::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.time-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow), var(--glow);
}

.time-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.suhoor-card .time-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.iftar-card .time-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.time-info h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.time-value-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.time-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Today's Progress Section */
.today-progress-section {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-title i {
    color: var(--accent);
}

.section-title.special {
    color: #ffd700;
}

.section-title.special i {
    color: #ffd700;
}

.progress-overview {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.progress-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.progress-stats {
    display: flex;
    gap: 30px;
}

.progress-stat {
    text-align: center;
}

.progress-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Daily Checklist */
.daily-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

.checklist-item.completed {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
}

.checklist-item.missed {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.checklist-item.missed .checkmark {
    border-color: var(--error);
}

.checklist-item.missed .goal-icon {
    color: var(--error);
}

.checklist-item.qaza {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.checklist-item.qaza .checkmark {
    background: var(--warning);
    border-color: var(--warning);
}

.checklist-item.qaza .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checklist-item.qaza .goal-icon {
    color: var(--warning);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: var(--success);
    border-color: var(--success);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.goal-text {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.goal-icon {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.checklist-item.completed .goal-icon {
    color: var(--success);
}

/* Fasting Calendar Section */
.fasting-calendar-section {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.legend-dot.fasted {
    background: var(--success);
}

.legend-dot.missed {
    background: var(--danger);
}

.legend-dot.makeup {
    background: var(--warning);
}

.legend-dot.upcoming {
    background: var(--border);
}

.fasting-calendar-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.fasting-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.fasting-day:hover {
    transform: scale(1.1);
    z-index: 5;
    box-shadow: var(--shadow);
}

.fasting-day .day-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.fasting-day.fasted {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
}

.fasting-day.fasted .day-number {
    color: var(--success);
}

.fasting-day.missed {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
}

.fasting-day.missed .day-number {
    color: var(--danger);
}

.fasting-day.makeup {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--warning);
}

.fasting-day.makeup .day-number {
    color: var(--warning);
}

.fasting-day.current {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.fasting-day.odd-night {
    position: relative;
}

.fasting-day.odd-night::after {
    content: '★';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    color: #ffd700;
}

.fasting-summary {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.summary-stat {
    text-align: center;
}

.summary-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== RAMADAN TIMETABLE SECTION ===== */
.ramadan-timetable-section {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

/* Today's Timing Card */
.todays-timing-card {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.todays-timing-card h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    text-align: center;
}

.timing-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sehri-time, .iftar-time {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.iftar-time {
    flex-direction: row-reverse;
    text-align: right;
}

.timing-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.sehri-icon {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: #ffeaa7;
}

.iftar-icon {
    background: linear-gradient(135deg, #e17055 0%, #fdcb6e 100%);
    color: white;
}

.timing-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timing-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.timing-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.timing-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.fasting-hours {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 14px;
}

.fasting-hours i {
    font-size: 20px;
    color: var(--accent);
}

/* Location Selection */
.timetable-location {
    margin-bottom: 24px;
    position: relative;
}

.timetable-location label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.location-input-wrapper {
    display: flex;
    gap: 8px;
}

.timetable-location-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.timetable-location-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.use-location-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--bg-secondary);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.use-location-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.location-suggestions {
    position: absolute;
    width: calc(100% - 60px);
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 4px;
    z-index: 100;
    display: none;
}

.location-suggestions.active {
    display: block;
}

.location-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border);
}

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

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

/* Ramadan Timetable */
.ramadan-timetable {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.timetable-header {
    display: grid;
    grid-template-columns: 50px 1fr 80px 80px 80px;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.timetable-body {
    max-height: 500px;
    overflow-y: auto;
}

.timetable-row {
    display: grid;
    grid-template-columns: 50px 1fr 80px 80px 80px;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
    align-items: center;
    border-left: 4px solid transparent;
}

/* Row status glow styles */
.timetable-row.status-fasted {
    background: rgba(16, 185, 129, 0.08);
    border-left: 4px solid var(--success);
    box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.15);
}

.timetable-row.status-missed {
    background: rgba(239, 68, 68, 0.08);
    border-left: 4px solid var(--error);
    box-shadow: inset 0 0 12px rgba(239, 68, 68, 0.15);
}

.timetable-row.status-makeup {
    background: rgba(245, 158, 11, 0.08);
    border-left: 4px solid var(--warning);
    box-shadow: inset 0 0 12px rgba(245, 158, 11, 0.15);
}

.timetable-row:hover {
    background: var(--bg-card);
}

.timetable-row.today {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border-left: 4px solid var(--accent);
    box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Today row with status - status takes priority for border color */
.timetable-row.today.status-fasted {
    border-left: 4px solid var(--success);
}

.timetable-row.today.status-missed {
    border-left: 4px solid var(--error);
}

.timetable-row.today.status-makeup {
    border-left: 4px solid var(--warning);
}

.timetable-row.passed {
    opacity: 0.6;
}

.timetable-row .day-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.timetable-row .date-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
}

.timetable-row .hijri-date {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.timetable-row .gregorian-date {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Fasting Status Dot - Middle Position */
.fasting-status-middle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.timetable-row .time-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.timetable-row .time-value.sehri {
    color: #a29bfe;
}

.timetable-row .time-value.iftar {
    color: #fdcb6e;
}

.timetable-row .time-value.taraweeh {
    color: #74b9ff;
}

/* Fasting Status Dot */
.fasting-status {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fasting-status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.fasting-status-dot:hover {
    transform: scale(1.2);
}

.fasting-status-dot.fasted {
    background-color: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.fasting-status-dot.missed {
    background-color: var(--danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.fasting-status-dot.makeup {
    background-color: var(--warning);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.fasting-status-dot.pending {
    background-color: rgba(148, 163, 184, 0.3);
    border: 2px dashed var(--text-secondary);
}

.timetable-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    gap: 12px;
}

.timetable-loading i {
    font-size: 32px;
    color: var(--accent);
}

/* Timetable Actions */
.timetable-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.timetable-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

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

.timetable-action-btn i {
    font-size: 16px;
}

/* Quran Progress Section */
.quran-progress-section {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.quran-tracker {
    text-align: center;
}

.quran-progress-bar {
    height: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.quran-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #10b981);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.quran-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.quran-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
}

.quran-stat {
    text-align: center;
}

.quran-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.quran-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.quran-input-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quran-input-section label {
    color: var(--text-secondary);
}

.pages-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pages-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.pages-input-group input {
    width: 80px;
    text-align: center;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.pages-input-group input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Laylatul Qadr Section */
.laylatul-qadr-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d2137 100%);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
    font-style: italic;
}

.odd-nights-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.odd-night-card {
    width: 80px;
    height: 100px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.odd-night-card:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.odd-night-card.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 170, 0, 0.1));
    border-color: #ffd700;
}

.odd-night-card .night-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
}

.odd-night-card .night-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.odd-night-card .star-icon {
    position: absolute;
    top: -10px;
    font-size: 1.2rem;
    color: #ffd700;
}

.odd-night-card.completed {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
}

.odd-night-card.completed .night-number {
    color: var(--success);
}

/* Statistics Section */
.ramadan-stats-section {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

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

.stat-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow), var(--glow);
    border-color: var(--accent);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-glow));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Duas Section */
.ramadan-duas-section {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.duas-grid {
    display: grid;
    gap: 20px;
}

.dua-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.dua-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.dua-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 15px;
}

.dua-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.6;
    direction: rtl;
}

.dua-transliteration {
    font-size: 1rem;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 10px;
}

.dua-translation {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Day Details Modal */
.day-details-modal {
    max-width: 500px;
}

.day-date {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.fasting-status-section {
    margin-bottom: 25px;
}

.fasting-status-section h4,
.missed-reason-section h4,
.day-notes-section h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.fasting-options {
    display: flex;
    gap: 10px;
}

.fasting-option {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.fasting-option:hover {
    border-color: var(--accent);
}

.fasting-option i {
    font-size: 1.5rem;
}

.fasting-option[data-status="fasted"].active {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: var(--success);
}

.fasting-option[data-status="missed"].active {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: var(--danger);
}

.fasting-option[data-status="makeup"].active {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--warning);
    color: var(--warning);
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

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

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.modal-header h3 i {
    color: var(--accent);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 25px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ramadan-status-banner {
        padding: 20px;
    }
    
    .status-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .status-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .status-text h2 {
        font-size: 1.5rem;
    }
    
    .time-value {
        font-size: 1.8rem;
        padding: 8px 12px;
        min-width: 60px;
    }
    
    .times-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .time-card {
        padding: 15px 10px;
    }

    .time-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .time-info h3 {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .time-value-large {
        font-size: 1.6rem;
    }

    .time-note {
        font-size: 0.7rem;
    }
    
    .progress-overview {
        flex-direction: row;
        gap: 15px;
    }

    .progress-ring-container {
        width: 90px;
        height: 90px;
    }

    .progress-percent {
        font-size: 1.2rem;
    }

    .progress-stats {
        gap: 20px;
    }

    .progress-stat .stat-value {
        font-size: 1.5rem;
    }

    .progress-stat .stat-label {
        font-size: 0.75rem;
    }
    
    .daily-checklist {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
    }

    .checklist-item {
        padding: 10px 12px;
    }

    .goal-text {
        font-size: 0.85rem;
    }

    .goal-icon {
        font-size: 0.95rem;
    }

    .checkmark {
        width: 20px;
        height: 20px;
    }
    
    .fasting-calendar-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }
    
    .fasting-day .day-number {
        font-size: 1rem;
    }
    
    .quran-stats {
        flex-direction: row;
        gap: 15px;
    }

    .quran-value {
        font-size: 1.5rem;
    }

    .quran-label {
        font-size: 0.75rem;
    }
    
    .odd-nights-grid {
        gap: 10px;
    }
    
    .odd-night-card {
        width: 60px;
        height: 80px;
    }
    
    .odd-night-card .night-number {
        font-size: 1.4rem;
    }
    
    .fasting-options {
        flex-direction: column;
    }
    
    .dua-arabic {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Timetable Responsive */
    .timing-display {
        flex-direction: row;
        gap: 15px;
    }

    .sehri-time, .iftar-time {
        flex-direction: column;
        text-align: center !important;
        gap: 8px;
    }

    .iftar-time {
        flex-direction: column;
    }

    .timing-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .timing-value {
        font-size: 22px;
    }

    .timing-label {
        font-size: 11px;
    }

    .timing-divider {
        padding: 0 10px;
    }

    .fasting-hours {
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
    }

    .timetable-header,
    .timetable-row {
        grid-template-columns: 45px 1fr 65px 65px 65px;
        font-size: 12px;
        gap: 6px;
        padding: 12px;
    }

    .timetable-row .day-number {
        font-size: 16px;
    }

    .timetable-row .time-value {
        font-size: 13px;
    }

    .timetable-actions {
        flex-direction: column;
    }

    .timetable-action-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Timing Display Mobile - Force side by side */
    .todays-timing-card {
        padding: 15px 10px;
    }

    .todays-timing-card h4 {
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* Progress Overview Mobile */
    .progress-overview {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        margin-bottom: 20px;
    }

    .progress-ring-container {
        width: 75px;
        height: 75px;
        flex-shrink: 0;
    }

    .progress-ring {
        width: 100%;
        height: 100%;
    }

    .progress-percent {
        font-size: 1.20rem;
    }

    .progress-stats {
        gap: 15px;
        flex-wrap: nowrap;
    }

    .progress-stat .stat-value {
        font-size: 1.3rem;
    }

    .progress-stat .stat-label {
        font-size: 0.7rem;
    }

    .timing-display {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px;
        justify-content: space-between;
        align-items: stretch;
    }

    .sehri-time, .iftar-time {
        gap: 10px;
    }

    .timing-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .timing-value {
        font-size: 20px;
    }

    .timing-label {
        font-size: 10px;
    }

    .timing-divider {
        display: flex;
        padding: 0 8px;
    }

    .fasting-hours {
        font-size: 11px;
    }

    .fasting-hours i {
        font-size: 14px;
    }

    /* Times Section Mobile - Side by side */
    .times-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .time-card {
        padding: 12px 8px;
        border-radius: 14px;
    }

    .time-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .time-info h3 {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .time-value-large {
        font-size: 1.4rem;
    }

    .time-note {
        font-size: 0.65rem;
        margin-top: 4px;
    }

    .fasting-calendar-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .fasting-summary {
        flex-direction: row;
        gap: 10px;
    }

    .summary-value {
        font-size: 1.4rem;
    }

    .summary-label {
        font-size: 0.7rem;
    }
    
    .days-number {
        font-size: 3rem;
    }
    
    .calendar-legend {
        gap: 10px;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    /* Timetable Responsive - 480px */
    .timetable-header,
    .timetable-row {
        grid-template-columns: 30px 70px 55px 55px 55px;
        gap: 6px;
        padding: 10px 8px;
    }

    .timetable-header {
        font-size: 10px;
    }

    .timetable-row .day-number {
        font-size: 14px;
    }

    .timetable-row .time-value {
        font-size: 12px;
        padding: 4px 2px;
    }

    .timetable-row .hijri-date {
        display: none;
    }

    .timetable-row .date-info {
        justify-content: center;
    }

    .timetable-row .gregorian-date {
        font-size: 13px;
        font-weight: 500;
        color: var(--text-primary);
    }

    /* Odd Nights Mobile Fix */
    .odd-nights-section {
        padding: 15px;
    }

    .odd-nights-grid {
        gap: 8px;
        justify-content: center;
    }

    .odd-night-card {
        width: 50px;
        height: 65px;
        border-radius: 10px;
    }

    .odd-night-card .night-number {
        font-size: 1.1rem;
    }

    .odd-night-card .night-label {
        font-size: 0.6rem;
    }

    .odd-night-card .star-icon {
        top: -8px;
        font-size: 0.9rem;
    }

    /* Stats Grid Mobile Fix */
    .ramadan-stats-section {
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .section-description {
        font-size: 0.85rem;
    }
}

/* ===== LIGHT MODE STYLES ===== */
[data-theme="light"] .ramadan-status-banner {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .status-text h2 {
    color: #1e40af;
}

[data-theme="light"] .status-icon {
    color: #1e3a5f;
}

[data-theme="light"] .pre-ramadan-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

[data-theme="light"] .days-number {
    color: #1e40af;
}

[data-theme="light"] .time-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: var(--border);
}

[data-theme="light"] .time-value-large {
    color: var(--accent);
}

[data-theme="light"] .today-progress-section,
[data-theme="light"] .fasting-calendar-section,
[data-theme="light"] .quran-progress-section,
[data-theme="light"] .laylatul-qadr-section,
[data-theme="light"] .ramadan-stats-section,
[data-theme="light"] .ramadan-duas-section,
[data-theme="light"] .ramadan-timetable-section {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="light"] .checklist-item {
    background: var(--bg-secondary);
    border-color: var(--border);
}

[data-theme="light"] .checklist-item:hover {
    background: #f1f5f9;
}

[data-theme="light"] .fasting-day {
    background: var(--bg-secondary);
    border-color: var(--border);
}

[data-theme="light"] .fasting-day:hover {
    background: #e2e8f0;
}

[data-theme="light"] .fasting-day.fasted {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
}

[data-theme="light"] .fasting-day.missed {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
}

[data-theme="light"] .fasting-day.makeup {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--warning);
}

[data-theme="light"] .odd-night-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

[data-theme="light"] .odd-night-card.completed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: var(--success);
}

[data-theme="light"] .stat-card {
    background: var(--bg-secondary);
    border-color: var(--border);
}

[data-theme="light"] .dua-card {
    background: var(--bg-secondary);
    border-color: var(--border);
}

[data-theme="light"] .modal {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .fasting-option {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="light"] .todays-timing-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: var(--border);
}

[data-theme="light"] .todays-timing-card h4 {
    color: var(--text-primary);
}

[data-theme="light"] .ramadan-timetable {
    background: var(--bg-secondary);
}

[data-theme="light"] .timetable-row:hover {
    background: #f1f5f9;
}

[data-theme="light"] .timetable-row.today {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

[data-theme="light"] .timetable-location-input,
[data-theme="light"] .use-location-btn {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="light"] .location-suggestions {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="light"] .location-suggestion-item:hover {
    background: #f1f5f9;
}

[data-theme="light"] .timetable-action-btn {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="light"] .quran-progress-bar {
    background: var(--bg-secondary);
    border-color: var(--border);
}

/* Light mode fasting status dots */
[data-theme="light"] .fasting-status-dot.pending {
    border-color: #cbd5e1;
}

[data-theme="light"] .fasting-status-dot.fasted {
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.4);
}

[data-theme="light"] .fasting-status-dot.missed {
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

[data-theme="light"] .fasting-status-dot.makeup {
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.4);
}
