/* assets/css/style.css */

:root {
    --tg-primary: #006947;
    --tg-primary-container: #00855b;
    --tg-secondary: #835500;
    --tg-secondary-container: #feae2c;
    --tg-tertiary: #2c674c;
    --tg-surface: #ecfef3;
    --tg-surface-container: #e0f2e8;
    --tg-surface-container-low: #e6f8ee;
    --tg-surface-container-lowest: #ffffff;
    --tg-on-surface: #0f1e19;
    --tg-on-surface-variant: #3e4942;
    --tg-outline: #6e7a72;
    --tg-error: #ba1a1a;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--tg-surface);
    color: var(--tg-on-surface);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--tg-primary) 0%, var(--tg-primary-container) 100%) !important;
    box-shadow: 0 4px 24px rgba(0, 105, 71, 0.22);
}

.navbar-brand {
    font-weight: 800;
}

/* Cards */
.card {
    border-radius: 1rem;
}

.hero-card {
    background: linear-gradient(135deg, var(--tg-primary) 0%, var(--tg-primary-container) 50%, var(--tg-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    pointer-events: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--tg-primary);
    border-color: var(--tg-primary);
}

.btn-primary:hover {
    background-color: var(--tg-primary-container);
    border-color: var(--tg-primary-container);
}

.btn-outline-primary {
    color: var(--tg-primary);
    border-color: var(--tg-primary);
}

.btn-outline-primary:hover {
    background-color: var(--tg-primary);
    border-color: var(--tg-primary);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--tg-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 105, 71, 0.25);
}

/* Vehicle Icons */
.vehicle-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

.vehicle-icon-lg {
    width: 64px;
    height: 64px;
}

/* Route Timeline */
.timeline-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--tg-primary);
}

.timeline-dot.end {
    background-color: var(--tg-tertiary);
}

.timeline-track {
    flex: 1;
    height: 2px;
    background-color: #dee2e6;
}

/* Seat Selection */
.seat-grid {
    max-width: 320px;
    margin: 0 auto;
}

.seat-row {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.seat-btn {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.seat-btn.available {
    background-color: #ffffff;
    color: var(--tg-on-surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.seat-btn.available:hover {
    background-color: var(--tg-surface-container);
    transform: scale(1.05);
}

.seat-btn.selected {
    background-color: var(--tg-secondary-container);
    color: #291800;
    box-shadow: 0 2px 6px rgba(254, 174, 44, 0.4);
    font-weight: 700;
}

.seat-btn.booked {
    background-color: #d5e7dd;
    color: var(--tg-outline);
    cursor: not-allowed;
}

.seat-aisle {
    width: 20px;
}

.seat-legend {
    width: 20px;
    height: 20px;
    border-radius: 0.25rem;
}

.seat-legend.available {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.seat-legend.selected {
    background-color: var(--tg-secondary-container);
}

.seat-legend.booked {
    background-color: #d5e7dd;
}

.vehicle-front {
    width: 120px;
    padding: 0.5rem;
    background-color: rgba(0, 105, 71, 0.1);
    border-radius: 1rem 1rem 0 0;
    color: var(--tg-primary);
    font-size: 1.5rem;
}

.vehicle-front small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Ticket */
.ticket-card {
    position: relative;
}

.ticket-perforation {
    padding: 1rem 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticket-perforation::before,
.ticket-perforation::after {
    content: '';
    width: 24px;
    height: 40px;
    background-color: var(--tg-surface);
    border-radius: 0 20px 20px 0;
    margin-left: -12px;
}

.ticket-perforation::after {
    border-radius: 20px 0 0 20px;
    margin-left: 0;
    margin-right: -12px;
}

.dashed-line {
    flex: 1;
    border-bottom: 2px dashed rgba(110, 122, 114, 0.4);
    margin: 0 1rem;
}

.qr-container {
    max-width: 200px;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Success Icon */
.success-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 576px) {
    .seat-btn {
        width: 38px;
        height: 38px;
        font-size: 0.65rem;
    }
    
    .vehicle-icon {
        width: 40px;
        height: 40px;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    display: none;
}

/* Utilities */
.rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.text-primary {
    color: var(--tg-primary) !important;
}

.bg-primary {
    background-color: var(--tg-primary) !important;
}

.bg-info {
    background-color: #0dcaf0 !important;
}