 /* Ticket background styling for bookings */
.list-group-item {
    background-image: url('assets/ticket-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.list-group-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    z-index: 1;
}

.list-group-item::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    z-index: 1;
}

/* Ensure text is readable over background */
.list-group-item h3,
.list-group-item h4,
.list-group-item h5,
.list-group-item p,
.list-group-item small {
    position: relative;
    z-index: 2;
    color: #333;
    text-align: left;
}

.list-group-item .text-muted {
    color: #666 !important;
}

/* Add a subtle overlay for better text readability */
.list-group-item {
    background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), url('assets/ticket-background.png');
}



/* Ticket modal styling */
.booking-back-button {
    border: 0;
    background: transparent;
    color: #123b69;
    font-weight: 700;
    padding: 4px 8px;
    margin-right: 8px;
}

.booking-back-button:hover {
    color: #2478c9;
}

.ticket-inline-back {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 10;
    border: 0;
    border-radius: 5px;
    padding: 5px 9px;
    background: rgba(255, 255, 255, 0.92);
    color: #123b69;
    font-size: 12px;
    font-weight: 800;
}

.ticket {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', 'Poppins', 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.ticket-top {
    background-color: #0F2B6A;
    padding: 25px;
    text-align: center;
    color: white;
}

.ticket-logo {
    width: 280px;
    height: auto;
    margin-bottom: 20px;
}

.ticket-line {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 10px 0;
}

.ticket-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.stations {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 5px;
}

.station-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.station-code {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 2px;
}

.station-full {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: 500;
}

.subway-icon {
    width: 40px;
    height: 40px;
}

.ticket-divider {
    height: 2px;
    background: #ddd;
    margin: 0;
    position: relative;
}

.ticket-divider::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.ticket-bottom {
    background: white;
    padding: 25px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.grid-item {
    padding: 10px 0;
    text-align: center;
    background: white;
    border-radius: 8px;
    border: none;
}

.label {
    font-size: 11px;
    font-weight: bold;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.value {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    word-wrap: break-word;
}

/* Additional styles for bookings list */
.list-group-item .label {
    font-size: 10px;
    font-weight: bold;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.list-group-item .value {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    word-wrap: break-word;
}

.ticket-gate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    color: #333;
    padding: 12px 25px;
    border-radius: 20px;
    margin-top: 20px;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #dee2e6;
}

.gate-text {
    margin-right: 10px;
}

.line-icon {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.discount-item {
    display: block !important;
}

.discount-label {
    display: none !important;
}

.discount-value {
    display: block !important;
}
