/* EduFlow AI Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main {
    flex: 1;
}

/* Language switcher form */
.language-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.language-form .dropdown-item {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

/* Cards */
.card {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-header {
    font-weight: 600;
    border-bottom: 2px solid rgba(0,0,0,0.125);
}

/* Priority Badges */
.badge-priority-low {
    background-color: #198754;
}

.badge-priority-medium {
    background-color: #ffc107;
    color: #000;
}

.badge-priority-high {
    background-color: #dc3545;
}

/* Event Type Badges */
.badge-event {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
}

/* Progress Bars */
.progress {
    height: 25px;
    border-radius: 8px;
}

.progress-bar {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Status Indicators */
.status-pending {
    color: #6c757d;
}

.status-in-progress {
    color: #0dcaf0;
}

.status-completed {
    color: #198754;
}

.status-skipped {
    color: #dc3545;
}

/* At Risk Alert */
.alert-at-risk {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Timer Display */
.timer-display {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin: 2rem 0;
}

/* Focus Model Cards */
.focus-model-card {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.focus-model-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.focus-model-card.active {
    border-color: var(--success-color);
    background-color: #d1e7dd;
}

/* Statistics Cards */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Session Cards */
.session-card {
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.session-card.overdue {
    border-left-color: var(--danger-color);
}

.session-card.completed {
    border-left-color: var(--success-color);
    opacity: 0.8;
}

/* Event Cards */
.event-card {
    margin-bottom: 1rem;
}

.event-card.at-risk {
    border: 2px solid var(--danger-color);
}

/* Days Remaining Badge */
.days-remaining {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timer-display {
        font-size: 2rem;
        padding: 1rem;
    }

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

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
