/**
 * Стили для приложения "Салон красоты - Расширенная панель управления"
 */

/* Общие стили */
body {
    padding-top: 20px;
    background-color: #f8f9fa;
}

.card {
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Временные слоты */
.time-slot {
    margin: 5px;
}

.available {
    background-color: #28a745;
    color: white;
}

.unavailable {
    background-color: #dc3545;
    color: white;
}

.hold {
    background-color: #ffc107;
    color: black;
}

/* Таблицы */
.table-hover tbody tr:hover {
    background-color: rgba(0,123,255,0.1);
}

/* Навигация */
.nav-tabs .nav-link.active {
    font-weight: bold;
}

/* Детали бронирования */
.booking-details {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.specialist-info {
    border-left: 4px solid #007bff;
    padding-left: 10px;
}

.status-badge {
    font-size: 0.8em;
}

/* Временные слоты */
#timeSlots {
    max-height: 400px;
    overflow-y: auto;
}

.slot-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.slot-btn {
    position: relative;
}

.slot-info {
    font-size: 0.7em;
    opacity: 0.8;
}

.current-booking {
    background-color: #e8f4fd !important;
}

/* Пошаговый процесс бронирования */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.step-indicator.active .step-number {
    background-color: #007bff;
    color: white;
}

.step-indicator.completed .step-number {
    background-color: #28a745;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
}

.step-indicator.active .step-label {
    color: #007bff;
    font-weight: bold;
}

.step-indicator.completed .step-label {
    color: #28a745;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #e9ecef;
    margin: 0 10px;
    margin-top: 20px;
    transition: all 0.3s;
}

.step-line.active {
    background-color: #28a745;
}

.booking-step {
    min-height: 300px;
}

.date-btn, .time-btn {
    min-width: 100px;
    margin: 5px;
}

/* Календарь */
.calendar-day {
    height: 120px;
    border: 1px solid #dee2e6;
    padding: 5px;
    cursor: pointer;
}

.calendar-day:hover {
    background-color: #f8f9fa;
}

.calendar-day.today {
    background-color: #e7f1ff;
}

.calendar-day.has-bookings {
    background-color: #fff3cd;
}

.booking-event {
    font-size: 0.75rem;
    padding: 2px 5px;
    margin: 1px 0;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Статистические карточки */
.stat-card {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    color: white;
}

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

.stat-card.success {
    background: linear-gradient(135deg, #42e695 0%, #3bb2b8 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Аватары */
.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.specialist-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dee2e6;
}

/* Прогресс-бары */
.progress-sm {
    height: 0.5rem;
}

/* Таймлайн */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #007bff;
}

/* Сообщения чата */
.chat-message {
    max-width: 80%;
    margin-bottom: 10px;
}

.chat-message.sent {
    margin-left: auto;
    background-color: #007bff;
    color: white;
    border-radius: 15px 15px 0 15px;
}

.chat-message.received {
    margin-right: auto;
    background-color: #e9ecef;
    border-radius: 15px 15px 15px 0;
}

/* Категории услуг */
.service-category {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Рейтинг */
.star-rating {
    color: #ffc107;
    font-size: 1.2rem;
}

/* Бейджи */
.badge-category {
    background-color: #6f42c1;
}

.badge-service {
    background-color: #20c997;
}

/* Индикаторы рабочих дней */
.workday-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.workday-indicator.working {
    background-color: #28a745;
}

.workday-indicator.dayoff {
    background-color: #dc3545;
}

/* Перетаскивание */
.drag-handle {
    cursor: move;
    color: #6c757d;
}

.sortable-ghost {
    opacity: 0.4;
}

/* Карточки специалистов */
.specialist-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Календарь */
.calendar-table {
    min-height: 500px;
}

.calendar-day {
    min-height: 100px;
    vertical-align: top;
    position: relative;
}

.calendar-day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.calendar-bookings {
    margin-top: 5px;
}

.calendar-booking {
    padding: 2px 5px;
    margin: 2px 0;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-booking:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.booking-confirmed {
    background-color: #28a745;
    color: white;
}

.booking-hold {
    background-color: #ffc107;
    color: black;
}

.booking-cancelled {
    background-color: #dc3545;
    color: white;
    text-decoration: line-through;
}

.booking-completed {
    background-color: #17a2b8;
    color: white;
}

.booking-pending {
    background-color: #6c757d;
    color: white;
}

.calendar-booking-more {
    padding: 2px 5px;
    font-size: 0.7rem;
    font-style: italic;
}

.calendar-bookings-count {
    margin-top: 5px;
    text-align: center;
}

.calendar-day.has-bookings {
    background-color: #e7f3ff;
}

.calendar-day.has-bookings:hover {
    background-color: #d0e7ff;
}

/* Календарь недели */
.calendar-week-table {
    min-height: 600px;
}

.calendar-time-col {
    width: 80px;
    text-align: center;
    font-weight: bold;
}

.calendar-hour-cell {
    min-height: 60px;
    position: relative;
    padding: 0 !important;
}

.calendar-week-booking {
    position: absolute;
    left: 0;
    right: 0;
    padding: 2px 5px;
    margin: 0 2px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.7rem;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.calendar-week-booking:hover {
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Календарь дня */
.calendar-day-view {
    max-height: 70vh;
    overflow-y: auto;
}

.calendar-day-table {
    min-height: 500px;
}

.calendar-day-bookings {
    min-height: 60px;
}

.calendar-day-booking {
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day-booking:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

