body {
    background-color: #f8f9fa;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.results-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
}

.error-message {
    display: none;
    margin-top: 1rem;
}

.price-cell {
    color: #28a745;
}

.route-details {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Let table expand naturally without scroll */

.airline-badge {
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    font-style: normal;
    cursor: pointer;
    border: none;
    margin-left: 4px;
}

.info-icon:hover {
    background-color: #555;
}

#resultsTableBody tr {
    cursor: pointer;
}

#resultsTableBody tr:hover {
    background-color: #e9ecef !important;
}

/* Placeholder text styling - make it much lighter to distinguish from actual input */
.form-control::placeholder {
    color: #bbb !important;
    opacity: 1 !important;
}

.form-control::-webkit-input-placeholder {
    color: #bbb !important;
    opacity: 1 !important;
}

.form-control::-moz-placeholder {
    color: #bbb !important;
    opacity: 1 !important;
}

.form-control:-ms-input-placeholder {
    color: #bbb !important;
    opacity: 1 !important;
}

/* Modal table grouped headers */
.table-dark th[colspan] {
    border-bottom: 2px solid #dee2e6 !important;
    font-weight: bold;
    font-size: 1.1em;
}

/* Modal table - data cells subtle background tint */
#flightOptionsModal tbody td:nth-child(4),
#flightOptionsModal tbody td:nth-child(5),
#flightOptionsModal tbody td:nth-child(6) {
    background-color: rgba(13, 110, 253, 0.03) !important; /* Very subtle primary tint */
}

#flightOptionsModal tbody td:nth-child(7),
#flightOptionsModal tbody td:nth-child(8),
#flightOptionsModal tbody td:nth-child(9) {
    background-color: rgba(255, 193, 7, 0.05) !important; /* Very subtle warning tint */
}

/* Modal table - right-align duration columns */
#flightOptionsModal thead th:nth-child(5),
#flightOptionsModal thead th:nth-child(8) {
    text-align: right !important;
}

#flightOptionsModal tbody td:nth-child(5),
#flightOptionsModal tbody td:nth-child(8) {
    text-align: right !important;
}

/* Main results table - Outbound and Return columns only */
#resultsTableBody td:nth-child(6) {
    background-color: rgba(13, 110, 253, 0.05) !important; /* Primary tint for Outbound */
}

#resultsTableBody td:nth-child(7) {
    background-color: rgba(255, 193, 7, 0.08) !important; /* Warning tint for Return */
}

/* Main results table headers - color Outbound and Return headers and right-align */
#resultsContainer .table thead th:nth-child(6) {
    background-color: #1a2d47 !important; /* Almost black with stronger blue tint */
    color: #fff !important;
    text-align: right !important;
}

#resultsContainer .table thead th:nth-child(7) {
    background-color: #473525 !important; /* Almost black with stronger orange tint */
    color: #fff !important;
    text-align: right !important;
}

/* Main results table - right-align Outbound and Return data cells */
#resultsTableBody td:nth-child(6),
#resultsTableBody td:nth-child(7) {
    text-align: right !important;
}

/* Baggage icons spacing */
.baggage-icons {
    letter-spacing: -0.15em;
    display: inline-block;
}

/* Remove borders from modal table header */
#flightOptionsModal thead th {
    border: none !important;
}

/* Price indicator square */
.price-indicator {
    display: inline-block;
    width: 12px;
    height: 20px;
    margin-left: 8px;
    border-radius: 2px;
    vertical-align: middle;
}

/* Stop indicator square (smaller, for inline use) */
.stop-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 4px;
    border-radius: 2px;
    vertical-align: middle;
}

/* Price legend styling */
.price-legend {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.price-legend .price-indicator {
    margin-left: 6px;
    margin-right: 4px;
}

.price-indicator-green {
    background-color: #28a745; /* Bootstrap success */
}

.price-indicator-yellow {
    background-color: #ffc107; /* Bootstrap warning */
}

.price-indicator-red {
    background-color: #dc3545; /* Bootstrap danger */
}
