/**
 * APTMS - Passenger Module Styles
 */

/* E-Ticket Page Specific Styles */
.eticket-page h4, .eticket-page h5 {
    /* Add specific heading styles if needed */
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#ticket-list-container .collection-item {
    cursor: pointer; /* Indicate tickets are clickable */
    transition: background-color 0.3s ease;
}

#ticket-list-container .collection-item:hover {
    background-color: #f5f5f5; /* Light grey hover effect */
}

#ticket-list-container .collection-item .secondary-content .chip {
    /* Style for secondary content like status chips */
    margin-top: -3px; /* Align chip better */
}

#ticket-list-container .chip,
#ticket-detail-modal #modal-ticket-status.chip {
    font-size: 0.8rem;
    height: 24px;
    line-height: 24px;
    padding: 0 10px;
    border-radius: 12px; /* Make chips rounded */
}

/* Status-specific chip colors (adjust as needed) */
.chip.booked { background-color: #4CAF50; color: white; } /* Green */
.chip.pending { background-color: #FF9800; color: white; } /* Orange */
.chip.cancelled { background-color: #F44336; color: white; } /* Red */
.chip.used { background-color: #9E9E9E; color: white; } /* Grey */


/* Ticket Detail Modal Styles */
#ticket-detail-modal .modal-content {
    padding-bottom: 20px; /* Add some space above the footer */
}

#ticket-detail-modal h4 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}
#ticket-detail-modal h5 {
     font-size: 1.2rem;
     margin-bottom: 10px;
}


#ticket-detail-modal #qr-code-canvas {
    border: 1px solid #eee;
    padding: 5px;
    background-color: white;
    margin-top: 10px;
    max-width: 100%; /* Ensure QR code scales down on small screens */
    height: auto !important; /* Maintain aspect ratio */
}

#ticket-detail-modal #modal-ticket-content p {
    margin: 8px 0;
    line-height: 1.4;
}
#ticket-detail-modal #modal-ticket-content p strong {
    min-width: 90px;
    display: inline-block;
}


#ticket-detail-modal #modal-ticket-status.chip {
     vertical-align: middle;
     margin-left: 5px;
}

/* Loader and Error Styles */
.progress {
    margin: 20px 0;
}

.red-text {
    margin-top: 10px;
}

/* Add styles for dashboard widgets if needed */
.ticket-sales-container, .communications-container, .wifi-usage-container, .feedback-list-container {
    /* Styles for widgets defined in PassengerModule.php */
}
