/* =============================================
   TaxiGo — Стили приложения
   ============================================= */

:root {
    --bs-warning: #FFA000;
    --bs-warning-rgb: 255, 160, 0;
}

/* Общие стили */
html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #f8f9fa;
}

/* Hero секция на главной */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

/* Карта */
#map, #driverMap {
    width: 100%;
    height: 100%;
}

/* Навигация */
.navbar-brand i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1030;
}

/* Карточки */
.card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.tariff-card {
    cursor: pointer;
    transition: all 0.2s;
}

.tariff-card:hover,
.tariff-card.border-warning {
    border-color: var(--bs-warning);
    background-color: #fff8e1;
}

/* Чат */
.chat-message .d-inline-block {
    max-width: 80%;
    word-break: break-word;
    border-radius: 12px !important;
}

.chat-message .bg-warning {
    background-color: #FFE082 !important;
}

/* Анимации */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Переключатель онлайн */
.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

/* Адаптивность */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    #leftPanel, #driverLeftPanel {
        min-width: 100% !important;
        height: 50vh !important;
    }

    #map, #driverMap {
        height: 50vh !important;
    }

    .row.g-0 > div {
        height: auto !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 40vh;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Toast */
.toast {
    min-width: 250px;
}

.toast.text-bg-success,
.toast.text-bg-danger {
    color: white !important;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Badge статуса */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 20px;
}

/* Анимация загрузки */
.spinner-border {
    width: 3rem;
    height: 3rem;
}
