/* ========================================
   YOGA MANAGEMENT - ОБЩИЕ СТИЛИ
   ======================================== */

/* ---------- Базовые стили ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* ---------- Навигация ---------- */
.nav-link { transition: color 0.2s; }

/* ---------- Календарь ---------- */
.calendar-day {
    transition: all 0.2s;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    user-select: none;
    margin: 0 auto;
}
.calendar-day:hover:not(.empty) {
    background-color: #e5e7eb;
    transform: scale(1.05);
}
.calendar-day.has-lesson {
    background-color: #86efac !important;
    color: #166534 !important;
    font-weight: 600;
}
.calendar-day.has-lesson:hover {
    background-color: #4ade80 !important;
    color: #064e3b !important;
}
.calendar-day.selected {
    background-color: #2563eb !important;
    color: white !important;
    font-weight: 700;
    transform: scale(1.1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.calendar-day.today {
    border: 3px solid #ef4444 !important;
    font-weight: 700;
    background: transparent !important;
    color: #dc2626 !important;
}
.calendar-day.today.has-lesson {
    border: 3px solid #ef4444 !important;
    background-color: #86efac !important;
    color: #166534 !important;
}
.calendar-day.today.selected {
    border: 3px solid #ef4444 !important;
    background-color: #2563eb !important;
    color: white !important;
}
.calendar-day.empty { cursor: default; visibility: hidden; }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-width: 340px;
    margin: 0 auto;
    padding: 4px;
}
.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-width: 340px;
    margin: 0 auto 10px;
    font-weight: 600;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
}

/* ---------- Кнопки навигации ---------- */
.nav-btn {
    background: #f3f4f6;
    color: #374151;
    font-size: 24px;
    font-weight: bold;
    padding: 8px 24px;
    border-radius: 12px;
    transition: all 0.2s;
    min-width: 50px;
    cursor: pointer;
    border: none;
    line-height: 1;
}
.nav-btn:hover { background: #e5e7eb; transform: scale(1.05); }
.nav-btn:active { transform: scale(0.95); }

.month-year-text {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    min-width: 180px;
    text-align: center;
}

/* ---------- Легенда календаря ---------- */
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}
.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.legend-dot-green { background-color: #86efac; border: 1px solid #4ade80; }
.legend-dot-red { border: 2px solid #ef4444; background: transparent; }
.legend-dot-blue { background-color: #2563eb; border: 1px solid #1d4ed8; }

/* ---------- Статус кнопки ---------- */
.status-btn { transition: all 0.2s; }
.status-btn.selected {
    box-shadow: 0 0 0 2px white, 0 0 0 4px #3b82f6;
}

/* ---------- Лоадер ---------- */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---------- Выбор времени ---------- */
.time-select {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 70px;
}
.time-select:hover { border-color: #93c5fd; }
.time-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.time-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 4px;
    padding: 8px;
    background: #fee2e2;
    border-radius: 6px;
    border: 1px solid #fca5a5;
}
