/* Daily Study Planner Styles */

/* Header Gradient */
.header-gradient {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control-lg {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control-lg:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Subject Row */
.subject-row {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.subject-row .form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.subject-row .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

/* Status Card */
#statusCard {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.status-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 4px solid #10b981;
}

.status-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
}

.status-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
}

.status-icon i {
    font-size: 2.5rem;
    color: #6366f1;
}

.status-success .status-icon i {
    color: #10b981;
}

.status-warning .status-icon i {
    color: #f59e0b;
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Subject Card */
.subject-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.subject-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.subject-card h5 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.time-badge {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Progress Bar */
.progress {
    background-color: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Weekly Preview Grid */
.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.day-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem 0.5rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.day-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.15);
}

.day-rest {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.day-name {
    font-weight: 700;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.day-subjects {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.subject-tag {
    background: #eef2ff;
    color: #4338ca;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rest-label {
    color: #92400e;
    font-weight: 600;
    font-size: 0.875rem;
}

.rest-label i {
    color: #f59e0b;
}
#modeLabel {
    color: #92400e;
    font-weight: 600;
    font-size: 1rem;
}

/* Tips List */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #4b5563;
}

.tips-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 992px) {
    .week-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header-gradient h1 {
        font-size: 1.75rem;
    }

    .header-gradient p {
        font-size: 1rem;
    }

    .stat-card {
        padding: 1rem 0.75rem;
    }

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

    .week-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .day-card {
        padding: 0.75rem 0.375rem;
    }

    .day-name {
        font-size: 0.75rem;
    }

    .subject-tag {
        font-size: 0.625rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 576px) {
    .glass-card {
        padding: 1.5rem !important;
    }

    .subject-card {
        padding: 1rem;
    }

    .time-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

    .week-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subject-row {
        padding: 0.75rem;
    }

    /* Short window preview mobile */
    .day-detail-card {
        padding: 1rem;
    }

    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .day-name {
        font-size: 1.1rem;
    }

    .subject-chip {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    #modeBadge {
        padding: 0.75rem 1rem;
    }
}

/* Mode Badge */
#modeBadge {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 10px;
    padding: 1rem 1.5rem;
}

#modeBadge i {
    font-size: 1.5rem;
    color: #f59e0b;
}

/* Short Window Preview */
.short-window-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.day-detail-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.day-detail-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.day-today {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: #6366f1;
    border-width: 3px;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.day-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.day-date {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
}

.day-subjects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subject-chip {
    background: #eef2ff;
    color: #4338ca;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #c7d2fe;
}

.day-today .subject-chip {
    background: #6366f1;
    color: white;
    border-color: #4f46e5;
}

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

.subject-card {
    animation: fadeIn 0.3s ease;
}

.day-card {
    animation: fadeIn 0.3s ease;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary {
    border: 2px solid #6366f1;
    color: #6366f1;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-danger {
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 6px;
}

.btn-outline-danger:hover {
    background: #ef4444;
    color: white;
}

