/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 *
 * @package    ExpressBus
 * @subpackage ExpressBus/public/css
 */

/* General Styles */
.expressbus-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.5;
    margin: 0 0 30px 0;
    padding: 0;
    box-sizing: border-box;
}

.expressbus-container * {
    box-sizing: border-box;
}

.expressbus-container h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding: 0;
    color: #333;
}

.expressbus-container h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding: 0;
    color: #333;
}

.expressbus-container p {
    margin: 0 0 15px 0;
    padding: 0;
}

.expressbus-container a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.expressbus-container a:hover {
    color: #00a0d2;
    text-decoration: underline;
}

.expressbus-container img {
    max-width: 100%;
    height: auto;
}

/* Form Elements */
.expressbus-form {
    margin: 0 0 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.expressbus-form-row {
    margin-bottom: 15px;
}

.expressbus-form-row:last-child {
    margin-bottom: 0;
}

.expressbus-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.expressbus-form-input,
.expressbus-form-select,
.expressbus-form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    transition: border-color 0.2s ease;
}

.expressbus-form-input:focus,
.expressbus-form-select:focus,
.expressbus-form-textarea:focus {
    border-color: #0073aa;
    outline: none;
}

.expressbus-form-input.error,
.expressbus-form-select.error,
.expressbus-form-textarea.error {
    border-color: #dc3232;
}

.expressbus-form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.expressbus-form-error {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #dc3232;
}

/* Buttons */
.expressbus-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.expressbus-button:hover {
    background-color: #00a0d2;
    color: #fff;
    text-decoration: none;
}

.expressbus-button.secondary {
    background-color: #f7f7f7;
    color: #555;
    border: 1px solid #ccc;
}

.expressbus-button.secondary:hover {
    background-color: #f0f0f0;
    color: #333;
}

.expressbus-button.large {
    padding: 10px 20px;
    font-size: 16px;
}

.expressbus-button.small {
    padding: 6px 12px;
    font-size: 12px;
}

.expressbus-button.full-width {
    display: block;
    width: 100%;
}

/* Messages */
.expressbus-message {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid #00a0d2;
    background-color: #f7fcff;
    color: #333;
}

.expressbus-message.success {
    border-left-color: #46b450;
    background-color: #ecf7ed;
}

.expressbus-message.error {
    border-left-color: #dc3232;
    background-color: #fbeaea;
}

.expressbus-message.warning {
    border-left-color: #ffb900;
    background-color: #fff8e5;
}

.expressbus-message.info {
    border-left-color: #00a0d2;
    background-color: #f0f6fc;
}

/* Trip Search Form */
.expressbus-search-form {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.expressbus-search-form h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.expressbus-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.expressbus-form-group {
    display: flex;
    flex-direction: column;
}

.expressbus-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.expressbus-required {
    color: #dc3232;
    font-weight: bold;
    margin-left: 2px;
}

.expressbus-form-group input,
.expressbus-form-group select {
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #fff;
}

/* Phone input alignment - left-aligned for LTR languages */
/* Apply when NOT in RTL mode */
body:not(.rtl) input[type="tel"],
html:not([dir="rtl"]) input[type="tel"],
body:not(.rtl) .expressbus-form-control[type="tel"],
html:not([dir="rtl"]) .expressbus-form-control[type="tel"],
body:not(.rtl) .expressbus-form-input[type="tel"],
html:not([dir="rtl"]) .expressbus-form-input[type="tel"],
body:not(.rtl) #expressbus-phone,
html:not([dir="rtl"]) #expressbus-phone,
body:not(.rtl) input#expressbus-phone,
html:not([dir="rtl"]) input#expressbus-phone {
    text-align: left !important;
    direction: ltr !important;
}

.expressbus-form-group input:focus,
.expressbus-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.expressbus-form-group input.expressbus-field-error,
.expressbus-form-group select.expressbus-field-error {
    border-color: #dc3232;
}

.expressbus-search-button {
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
}

.expressbus-search-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a87 0%, #0087b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.expressbus-search-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.expressbus-search-loading {
    display: none;
}

/* Loading and Error States */
.expressbus-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.expressbus-loading::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e5e5;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.expressbus-error {
    background: #fbeaea;
    border: 1px solid #dc3232;
    border-radius: 6px;
    padding: 20px;
    color: #dc3232;
    text-align: center;
    margin: 20px 0;
}

/* Trip Results */
.expressbus-trip-list {
    margin-top: 30px;
}

.expressbus-trip-list h3 {
    margin-bottom: 25px;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.expressbus-trip-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.expressbus-trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.expressbus-trip-route {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 600;
}

.expressbus-trip-source,
.expressbus-trip-destination {
    color: #333;
}

.expressbus-trip-arrow {
    color: #0073aa;
    font-size: 20px;
}

.expressbus-trip-price {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
}

.expressbus-trip-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.expressbus-trip-time {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.expressbus-departure-time,
.expressbus-arrival-time {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.expressbus-trip-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: right;
}

.expressbus-trip-duration,
.expressbus-trip-seats {
    font-size: 14px;
    color: #666;
}

.expressbus-trip-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.expressbus-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.expressbus-btn-primary {
    background: linear-gradient(135deg, #0073aa 0%, #00a0d2 100%);
    color: white;
}

.expressbus-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e5e5e5;
}

.expressbus-btn-secondary:hover {
    background: #e9ecef;
    border-color: #ddd;
}

.expressbus-btn-disabled {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.expressbus-price-currency {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
}

.expressbus-trip-date {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.expressbus-trip-duration {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.expressbus-bus-info {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.expressbus-btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #0087b3 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.expressbus-btn-secondary {
    background: #f7f7f7;
    color: #333;
    border: 1px solid #ddd;
}

.expressbus-btn-secondary:hover {
    background: #f0f0f0;
    border-color: #ccc;
    transform: translateY(-1px);
}

.expressbus-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .expressbus-form-grid {
        grid-template-columns: 1fr;
    }
    
    .expressbus-trip-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .expressbus-trip-details {
        grid-template-columns: 1fr;
    }
    
    .expressbus-trip-info {
        text-align: left;
    }
    
    .expressbus-trip-actions {
        justify-content: stretch;
    }
    
    .expressbus-btn {
        flex: 1;
    }
    
    .expressbus-search-form {
        padding: 20px;
    }
}



.expressbus-search-form .expressbus-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.expressbus-search-form .expressbus-form-col {
    flex: 1;
    padding: 0 10px;
    min-width: 200px;
}

.expressbus-search-advanced {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.expressbus-search-toggle {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #0073aa;
    cursor: pointer;
}

/* Trip Listing */
.expressbus-trip-list {
    margin-bottom: 30px;
}

.expressbus-trip-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.expressbus-trip-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.expressbus-trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.expressbus-trip-route {
    font-size: 18px;
    font-weight: 600;
}

.expressbus-trip-price {
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
}

.expressbus-trip-details {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 15px;
}

.expressbus-trip-detail {
    flex: 1;
    min-width: 150px;
    padding: 0 10px;
    margin-bottom: 10px;
}

.expressbus-trip-detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.expressbus-trip-detail-value {
    font-size: 14px;
    font-weight: 600;
}

.expressbus-trip-actions {
    text-align: right;
}

/* Trip Details */
.expressbus-trip-info {
    margin-bottom: 30px;
}

.expressbus-trip-info-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.expressbus-trip-info-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.expressbus-trip-info-subtitle {
    font-size: 16px;
    color: #666;
}

.expressbus-trip-info-price {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 20px;
}

.expressbus-trip-info-details {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: 30px;
}

.expressbus-trip-info-detail {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    margin: 0 15px 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.expressbus-trip-info-detail-icon {
    margin-bottom: 10px;
    color: #0073aa;
    font-size: 24px;
}

.expressbus-trip-info-detail-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.expressbus-trip-info-detail-value {
    font-size: 16px;
    font-weight: 600;
}

/* Seat Selection */
.expressbus-seat-selection {
    margin-bottom: 30px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Modal specific seat selection styles */
.expressbus-modal .expressbus-seat-selection {
    max-width: 100%;
    margin: 0;
    padding: 15px;
    box-shadow: none;
    border-radius: 0;
}

.expressbus-modal .expressbus-seat-selection-header {
    text-align: center;
    margin-bottom: 20px;
}

.expressbus-modal .expressbus-seat-selection-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.4em;
}

.expressbus-modal .expressbus-seat-selection-info {
    color: #666;
    margin: 0;
    font-size: 0.9em;
}

/* Seat Messages */
.expressbus-seat-messages {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.expressbus-seat-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.expressbus-seat-messages.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.expressbus-seat-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.expressbus-seat-messages p {
    margin: 0;
    font-size: 0.9em;
}

/* Modal seat selection actions */
.expressbus-modal .expressbus-seat-selection-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Modal selected seats summary */
.expressbus-modal .expressbus-selected-seats-summary {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.expressbus-modal .expressbus-selected-seats-summary h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.expressbus-modal .expressbus-selected-seats-list {
    margin-bottom: 10px;
    color: #555;
}

.expressbus-modal .expressbus-selected-seats-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #333;
}

.expressbus-modal .expressbus-total-price {
    color: #007cba;
    font-size: 1.1em;
}

.expressbus-seat-map {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto 20px;
}

/* Bus Container */
.expressbus-bus-container {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 20px;
    margin: 0 auto;
    max-width: 350px;
    position: relative;
}

/* Bus Container for 56-seat layout - needs more width */
.expressbus-seat-map[data-layout="56-seat"] ~ *,
.expressbus-seat-layout-wrapper.expressbus-layout-56-seat ~ * {
    /* This ensures proper spacing */
}

.expressbus-bus-container:has(.expressbus-seat-layout-wrapper.expressbus-layout-56-seat) {
    max-width: 600px; /* Wider for 56-seat staggered layout */
}

/* Fallback for browsers without :has() support */
.expressbus-seat-map[data-layout="56-seat"] {
    max-width: 600px;
    margin: 0 auto 20px;
}

/* Driver Section */
.expressbus-bus-driver {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #6c757d;
    color: white;
    border-radius: 8px;
    font-weight: bold;
}

/* Seat Row */
.expressbus-seat-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    gap: 5px;
}

/* 56-Seat Bus Layout - Staggered Blocks */
.expressbus-seat-layout-wrapper.expressbus-layout-56-seat .expressbus-seat-blocks.expressbus-56-seat-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.expressbus-seat-layout-wrapper.expressbus-layout-56-seat .expressbus-left-block,
.expressbus-seat-layout-wrapper.expressbus-layout-56-seat .expressbus-right-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Removed staggered-right - rows now align horizontally from row 1 */

.expressbus-seat-layout-wrapper.expressbus-layout-56-seat .expressbus-central-gap {
    width: 40px;
    min-width: 40px;
    flex-shrink: 0;
}

/* Ensure 49-seat layout doesn't use staggered blocks */
.expressbus-seat-layout-wrapper.expressbus-layout-49-seat .expressbus-seat-blocks.expressbus-56-seat-layout {
    display: none;
}

/* Side Door Gap */
.expressbus-side-door-gap {
    width: 90px; /* Width of 2 seats + gap */
    height: 40px;
    flex-shrink: 0;
}

/* Empty Seat Placeholder */
.expressbus-seat-empty {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* Back Row (5 seats) */
.expressbus-seat-row.expressbus-back-row {
    justify-content: center;
    gap: 3px;
}

.expressbus-seat-row.expressbus-back-row .expressbus-seat {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 11px;
}

/* Aisle */
.expressbus-aisle {
    width: 30px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual Seat */
.expressbus-seat {
    width: 40px;
    height: 40px;
    background-color: #28a745;
    border: 2px solid #1e7e34;
    border-radius: 6px;
    text-align: center;
    line-height: 36px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expressbus-seat.available {
    background-color: #28a745;
    border-color: #1e7e34;
    color: white;
}

.expressbus-seat.selected {
    background-color: #007bff;
    border-color: #0056b3;
    color: #fff;
}

.expressbus-seat.booked {
    background-color: #6c757d;
    border-color: #545b62;
    color: #fff;
    cursor: not-allowed;
}

.expressbus-seat.unavailable {
    background-color: #dc3545;
    border-color: #c82333;
    color: #fff;
    cursor: not-allowed;
}

.expressbus-seat-legend {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.expressbus-seat-legend-item {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.expressbus-seat-legend-color {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.expressbus-seat-legend-color.available {
    background-color: #28a745;
    border-color: #1e7e34;
}

.expressbus-seat-legend-color.selected {
    background-color: #007bff;
    border-color: #0056b3;
}

.expressbus-seat-legend-color.booked {
    background-color: #6c757d;
    border-color: #545b62;
}

.expressbus-seat-legend-color.unavailable {
    background-color: #dc3545;
    border-color: #c82333;
}

.expressbus-seat-legend-text {
    font-size: 12px;
    color: #666;
}

/* Authentication Forms */
.expressbus-auth-form {
    max-width: 400px;
    margin: 0 auto 30px;
}

.expressbus-auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.expressbus-auth-links a {
    margin: 0 10px;
}

.expressbus-already-logged-in {
    text-align: center;
    padding: 20px;
    background-color: #f0f6fc;
    border-radius: 4px;
    margin-bottom: 30px;
}

.expressbus-login-required {
    text-align: center;
    padding: 20px;
    background-color: #fff8e5;
    border-radius: 4px;
    margin-bottom: 30px;
}

/* Legacy Dashboard Styles - Removed to prevent conflicts with new dashboard structure */

/* Legacy booking styles removed - using new dashboard structure */

.expressbus-profile-form {
    max-width: 600px;
}

/* Dashboard Styles */
.expressbus-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}

.dashboard-header {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.dashboard-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
}

.dashboard-title h1 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.welcome-message {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.user-email {
    color: #666;
    font-size: 14px;
}

/* Dashboard Main Layout */
.dashboard-main {
    display: flex;
    gap: 30px;
    min-height: 600px;
}

/* Sidebar Styles */
.dashboard-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    height: fit-content;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nav-tabs {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 20px 0;
    list-style: none;
    flex: 1;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-left-color: #e0e0e0;
}

.nav-link.active {
    color: #d32f2f;
    background: #fff5f5;
    border-left-color: #d32f2f;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #d32f2f;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
}

.nav-text {
    font-size: 15px;
    font-weight: 500;
}

/* Sidebar Footer */
.sidebar-footer {
    border-top: 1px solid #f0f0f0;
    padding: 20px 0;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    text-decoration: none;
    color: #dc3545;
    transition: all 0.3s ease;
    font-weight: 500;
}

.logout-link:hover {
    background: #fff5f5;
    color: #b02a37;
    text-decoration: none;
}

/* Main Content Area */
.dashboard-content {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 600px;
}

.tab-content {
    padding: 30px;
    min-height: 400px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.stat-card.total-bookings {
    border-left: 4px solid #2196F3;
}

.stat-card.upcoming-trips {
    border-left: 4px solid #4CAF50;
}

.stat-card.total-spent {
    border-left: 4px solid #FF9800;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card.total-bookings .stat-icon {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.stat-card.upcoming-trips .stat-icon {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.stat-card.total-spent .stat-icon {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-value {
    display: block;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #d32f2f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.loading-spinner.active {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.recent-bookings-section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.view-all-link {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #b71c1c;
    text-decoration: underline;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.booking-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.booking-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.booking-route {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.booking-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.booking-status.pending {
    background: #fff3cd;
    color: #856404;
}

.booking-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.booking-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.booking-detail {
    display: flex;
    flex-direction: column;
}

.booking-detail strong {
    color: #333;
    margin-bottom: 4px;
    font-weight: 600;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-state .loading-spinner {
    display: block;
    width: 30px;
    height: 30px;
    border-width: 3px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 18px;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Bookings Tab Styles */
.bookings-header {
    margin-bottom: 30px;
    text-align: center;
}

.bookings-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.bookings-subtitle {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.bookings-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin: 0;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper .form-control {
    padding-right: 40px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-actions .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bookings-content {
    min-height: 400px;
}

.booking-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.booking-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.booking-item.status-confirmed {
    border-left: 4px solid #4CAF50;
}

.booking-item.status-pending {
    border-left: 4px solid #FF9800;
}

.booking-item.status-cancelled {
    border-left: 4px solid #f44336;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.booking-route strong {
    font-size: 18px;
    color: #333;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-confirmed {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.status-pending {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.status-cancelled {
    background: #ffebee;
    color: #c62828;
}

.booking-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin: 0;
}

.info-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.booking-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.booking-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination .page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.pagination .page-btn.active {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

.pagination .page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive Styles */
@media screen and (max-width: 782px) {
    .expressbus-search-form .expressbus-form-col {
        flex: 100%;
        margin-bottom: 15px;
    }
    
    .expressbus-trip-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .expressbus-trip-price {
        margin-top: 10px;
    }
    
    .expressbus-trip-detail {
        flex: 100%;
    }
    
    /* Legacy dashboard responsive styles removed */
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .dashboard-tabs {
        flex-direction: column;
    }
    
    .dashboard-tabs .tab {
        border-bottom: 1px solid #e9ecef;
        border-left: 3px solid transparent;
    }
    
    .dashboard-tabs .tab.active {
         border-left-color: #d32f2f;
         border-bottom-color: #e9ecef;
     }
     
     .filters-row {
         grid-template-columns: 1fr;
         gap: 15px;
     }
     
     .filter-actions {
         justify-content: stretch;
     }
     
     .filter-actions .btn {
         flex: 1;
         justify-content: center;
     }
     
     .booking-info {
         grid-template-columns: 1fr 1fr;
     }
     
     .booking-actions {
         flex-direction: column;
     }
     
     .booking-actions .btn {
         width: 100%;
         justify-content: center;
     }
     
     .pagination {
         flex-wrap: wrap;
         gap: 5px;
     }
     
     .pagination .page-btn {
         min-width: 40px;
         text-align: center;
     }
 }
 
 @media screen and (max-width: 480px) {
     .stat-card {
         flex-direction: column;
         text-align: center;
         gap: 10px;
     }
     
     .stat-icon {
         align-self: center;
     }
     
     .booking-info {
         grid-template-columns: 1fr;
     }
     
     .booking-header {
         flex-direction: column;
         align-items: flex-start;
         gap: 10px;
     }
     
    .bookings-filters {
        padding: 15px;
    }
}

/* Trip Type Tabs */
.expressbus-trip-type-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    background: #f5f5f5;
    border-radius: 8px 8px 0 0;
}

.expressbus-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    text-align: center;
}

.expressbus-tab:hover {
    background: #e9e9e9;
    color: #333;
}

.expressbus-tab.active {
    background: #fff;
    color: #0073aa;
    border-bottom-color: #0073aa;
}

/* Trip Results Page */
.expressbus-trip-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.expressbus-results-search-header {
    margin-bottom: 30px;
}

.expressbus-results-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.expressbus-results-route {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.expressbus-results-arrow {
    color: #0073aa;
    font-size: 20px;
}

.expressbus-results-dates {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.expressbus-trips-section {
    margin-bottom: 40px;
}

.expressbus-section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.expressbus-trips-list {
    display: grid;
    gap: 20px;
}

.expressbus-trip-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.expressbus-trip-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.expressbus-trip-card-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.expressbus-trip-route-info {
    flex: 1;
    min-width: 250px;
}

.expressbus-trip-stations {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.expressbus-trip-station {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.expressbus-station-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.expressbus-station-time {
    font-size: 14px;
    color: #666;
}

.expressbus-trip-price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.expressbus-trip-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.expressbus-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #dc3545;
}

.expressbus-price-currency {
    font-size: 16px;
    color: #666;
}

.expressbus-trip-seats-available {
    font-size: 14px;
    color: #28a745;
}

.expressbus-trip-action {
    flex: 0 0 auto;
}

.expressbus-no-trips {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Payment Page */
.expressbus-payment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.expressbus-payment-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.expressbus-payment-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.expressbus-booking-item {
    padding: 15px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 15px;
}

.expressbus-booking-route {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.expressbus-booking-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.expressbus-booking-number {
    font-size: 14px;
    color: #666;
}

.expressbus-payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 2px solid #dee2e6;
    font-size: 20px;
    font-weight: 600;
}

.expressbus-payment-methods {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.expressbus-payment-method-option {
    margin-top: 15px;
}

.expressbus-pay-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
}

/* Promo Code Section */
.expressbus-promo-code-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.expressbus-promo-code-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.expressbus-promo-code-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.expressbus-promo-code-form br {
    display: none;
}

.expressbus-promo-code-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    line-height: 1.5;
    background: #fff;
}

.expressbus-apply-promo-btn,
#expressbus-apply-promo-code.expressbus-apply-promo-btn,
button.expressbus-apply-promo-btn {
    display: inline-block !important;
    padding: 12px 24px !important;
    background: #ff2e2e !important;
    border-radius: 30px !important;
    border: none !important;
    color: #fff !important;
    font-size: 16px !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(255, 46, 46, 0.2) !important;
    min-width: 120px !important;
    text-align: center !important;
}

.expressbus-apply-promo-btn:hover:not(:disabled),
#expressbus-apply-promo-code.expressbus-apply-promo-btn:hover:not(:disabled),
button.expressbus-apply-promo-btn:hover:not(:disabled) {
    background: #e02525 !important;
    transform: translateY(-1px) !important;
}

.expressbus-apply-promo-btn:disabled,
#expressbus-apply-promo-code.expressbus-apply-promo-btn:disabled,
button.expressbus-apply-promo-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.expressbus-promo-code-message {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
}

.expressbus-promo-code-message.expressbus-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.expressbus-promo-code-message.expressbus-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.expressbus-booking-expiry-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.expressbus-booking-expiry-warning strong {
    color: #856404;
}

/* Confirmation Page */
.expressbus-confirmation-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.expressbus-confirmation-header {
    text-align: center;
    margin-bottom: 40px;
}

.expressbus-confirmation-title {
    font-size: 32px;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 10px;
}

.expressbus-confirmation-message {
    font-size: 16px;
    color: #666;
}

.expressbus-ticket-card {
    background: #fff;
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.expressbus-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.expressbus-ticket-header h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.expressbus-ticket-number {
    font-size: 14px;
    color: #666;
}

.expressbus-ticket-content {
    margin-top: 20px;
}

.expressbus-ticket-route {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.expressbus-ticket-station {
    flex: 1;
    text-align: center;
}

.expressbus-ticket-arrow {
    font-size: 24px;
    color: #0073aa;
    font-weight: 600;
}

.expressbus-ticket-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.expressbus-confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Responsive Styles for New Components */
@media (max-width: 768px) {
    .expressbus-trip-type-tabs {
        flex-direction: column;
    }
    
    .expressbus-tab {
        border-bottom: 1px solid #ddd;
        border-right: none;
    }
    
    .expressbus-tab.active {
        border-bottom-color: #0073aa;
        border-left: 3px solid #0073aa;
    }
    
    .expressbus-trip-card-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .expressbus-trip-price-info {
        align-items: flex-start;
    }
    
    .expressbus-trip-action {
        width: 100%;
    }
    
    .expressbus-trip-action .expressbus-btn {
        width: 100%;
    }
    
    .expressbus-ticket-route {
        flex-direction: column;
        gap: 15px;
    }
    
    .expressbus-ticket-arrow {
        transform: rotate(90deg);
    }
    
    .expressbus-confirmation-actions {
        flex-direction: column;
    }
    
    .expressbus-confirmation-actions .expressbus-btn {
        width: 100%;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10002;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.modal-close,
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.modal-close:hover,
.close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-footer .btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.modal-footer .btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.modal-footer .btn-primary {
    background: #d32f2f;
    color: #fff;
    border: 1px solid #d32f2f;
}

.modal-footer .btn-primary:hover {
    background: #b71c1c;
    border-color: #b71c1c;
}

.modal-footer .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

body.modal-open {
    overflow: hidden;
}

/* Booking Details Modal Content */
.booking-details-modal {
    color: #333;
}

.booking-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.booking-route-large h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.booking-status-large .status-badge {
    font-size: 13px;
    padding: 8px 16px;
}

.booking-details-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.details-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.details-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-item span {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.detail-item .amount {
    font-size: 18px;
    font-weight: 600;
    color: #d32f2f;
}

.loading-state,
.error-state {
    text-align: center;
    padding: 40px 20px;
}

.loading-state .loading-spinner {
    margin: 0 auto 15px;
}

.error-state p {
    color: #d32f2f;
    font-size: 16px;
    margin: 0;
}

/* Responsive Modal Styles */
@media screen and (max-width: 782px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }

    .modal-header h4 {
        font-size: 20px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .booking-details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}