html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a,
.btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45OTMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

.dialog-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.color-box {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    font-weight: 500;
}

/* --- FlightPricing styles moved from .razor file --- */
.sortable-header {
    cursor: pointer;
    user-select: none;
}

.sortable-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-card {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 40px;
}

.fee-badge {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

.table-title {
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.status-toggle {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

/* --- end FlightPricing styles --- */

.parameter-checkbox-row {
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
    gap: 0.5rem;
    min-height: 2.2em;
    border: 1px solid #e0e0e0;
    border-radius: 0.25rem;
    background: none;
}

.parameter-checkbox-row .form-check-input {
    margin-left: 0;
    margin-right: 0.5em;
    flex-shrink: 0;
}

.parameter-checkbox-row .form-check-label {
    margin-left: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.parameter-checkbox-row.bg-light {
    background: #f8f9fa !important;
}

/* --- FlightPricing Component Styles --- */
/* Ultra-high specificity for button overrides */
.table .btn.btn-action-primary,
.card .btn.btn-action-primary,
button.btn.btn-action-primary {
    color: #1565c0 !important;
    background-color: #e3f0ff !important;
    background: #e3f0ff !important;
    border-color: #1976d2 !important;
    border: 1px solid #1976d2 !important;
    transition: all 0.2s ease !important;
    min-width: 100px !important;
    height: 40px !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 0.75rem !important;
    box-shadow: none !important;
}

.table .btn.btn-action-primary:hover,
.table .btn.btn-action-primary:focus,
.card .btn.btn-action-primary:hover,
.card .btn.btn-action-primary:focus,
button.btn.btn-action-primary:hover,
button.btn.btn-action-primary:focus {
    color: #fff !important;
    background-color: #1976d2 !important;
    background: #1976d2 !important;
    border-color: #1565c0 !important;
    border: 1px solid #1565c0 !important;
    box-shadow: 0 2px 12px 0 rgba(21, 101, 192, 0.15) !important;
    transform: none !important;
}

.table .btn.btn-action-success,
.card .btn.btn-action-success,
button.btn.btn-action-success {
    color: #1b5e20 !important;
    background-color: #e8f5e9 !important;
    background: #e8f5e9 !important;
    border-color: #43a047 !important;
    border: 1px solid #43a047 !important;
    transition: all 0.2s ease !important;
    min-width: 100px !important;
    height: 40px !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 0.75rem !important;
    box-shadow: none !important;
}

.table .btn.btn-action-success:hover,
.table .btn.btn-action-success:focus,
.card .btn.btn-action-success:hover,
.card .btn.btn-action-success:focus,
button.btn.btn-action-success:hover,
button.btn.btn-action-success:focus {
    color: #fff !important;
    background-color: #43a047 !important;
    background: #43a047 !important;
    border-color: #1b5e20 !important;
    border: 1px solid #1b5e20 !important;
    box-shadow: 0 2px 12px 0 rgba(67, 160, 71, 0.15) !important;
    transform: none !important;
}

.table .btn.btn-action-danger,
.card .btn.btn-action-danger,
button.btn.btn-action-danger {
    color: #b71c1c !important;
    background-color: #ffebee !important;
    background: #ffebee !important;
    border-color: #e53935 !important;
    border: 1px solid #e53935 !important;
    transition: all 0.2s ease !important;
    min-width: 100px !important;
    height: 40px !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 0.75rem !important;
    box-shadow: none !important;
}

.table .btn.btn-action-danger:hover,
.table .btn.btn-action-danger:focus,
.card .btn.btn-action-danger:hover,
.card .btn.btn-action-danger:focus,
button.btn.btn-action-danger:hover,
button.btn.btn-action-danger:focus {
    color: #fff !important;
    background-color: #e53935 !important;
    background: #e53935 !important;
    border-color: #b71c1c !important;
    border: 1px solid #b71c1c !important;
    box-shadow: 0 2px 12px 0 rgba(229, 57, 53, 0.15) !important;
    transform: none !important;
}

/* Small versions for inline buttons */
.table .btn.btn-action-primary.btn-sm,
.card .btn.btn-action-primary.btn-sm,
button.btn.btn-action-primary.btn-sm {
    min-width: 75px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
    padding: 0.375rem 0.5rem !important;
}

.table .btn.btn-action-success.btn-sm,
.card .btn.btn-action-success.btn-sm,
button.btn.btn-action-success.btn-sm {
    min-width: 75px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
    padding: 0.375rem 0.5rem !important;
}

.table .btn.btn-action-danger.btn-sm,
.card .btn.btn-action-danger.btn-sm,
button.btn.btn-action-danger.btn-sm {
    min-width: 75px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
    padding: 0.375rem 0.5rem !important;
}

.pricing-row-divider {
    height: 2px;
    background-color: #ced4da;
    margin: 0.75rem 0;
    width: 100%;
    border-radius: 1px;
}

/* Improved table layout with row separation */
.table.flight-pricing-table {
    table-layout: fixed !important;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table.flight-pricing-table th,
.table.flight-pricing-table td {
    vertical-align: top;
    padding: 1rem 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.table.flight-pricing-table th {
    background-color: #f8f9fa !important;
    border-bottom: 3px solid #dee2e6;
    font-weight: 600;
}

/* Add alternating row colors and better separation */
.table.flight-pricing-table tbody tr {
    border-bottom: 2px solid #e9ecef;
}

.table.flight-pricing-table tbody tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

.table.flight-pricing-table tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

.table.flight-pricing-table tbody tr:hover {
    background-color: #e3f2fd !important;
}

/* Parameter and Price group styling */
.parameter-group,
.price-group {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.parameter-title,
.price-title {
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.parameter-values,
.price-values {
    margin-left: 1rem;
}

.parameter-value {
    padding: 0.25rem 0;
    color: #6c757d;
    white-space: pre-line;
    word-wrap: break-word;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    border: 1px solid #e9ecef;
}

.price-value {
    font-weight: 500;
    white-space: pre-line;
    word-wrap: break-word;
}

.price-amount {
    font-weight: 600;
}

/* Action buttons container */
.table.flight-pricing-table td .d-flex.flex-row {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.table.flight-pricing-table td .d-flex.flex-row .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.5rem;
    min-width: 70px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Column width fixes */
.table.flight-pricing-table th:nth-child(1),
.table.flight-pricing-table td:nth-child(1) {
    width: 12%;
}

/* Table Name */
.table.flight-pricing-table th:nth-child(2),
.table.flight-pricing-table td:nth-child(2) {
    width: 12%;
}

/* Service */
.table.flight-pricing-table th:nth-child(3),
.table.flight-pricing-table td:nth-child(3) {
    width: 24%;
}

/* Parameters */
.table.flight-pricing-table th:nth-child(4),
.table.flight-pricing-table td:nth-child(4) {
    width: 24%;
}

/* Prices */
.table.flight-pricing-table th:nth-child(5),
.table.flight-pricing-table td:nth-child(5) {
    width: 10%;
}

/* Status */
.table.flight-pricing-table th:nth-child(6),
.table.flight-pricing-table td:nth-child(6) {
    width: 18%;
}

/* Actions - wider for horizontal buttons */

/* Additional FlightPricing utility classes */
.card-header .btn.header-button-glass,
.card .btn.header-button-glass,
button.btn.header-button-glass {
    background-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(4px) !important;
}

.parameter-select-container {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 0.25rem;
    padding: 0.5rem;
}

.parameter-checkbox-large {
    width: 1.3em !important;
    height: 1.3em !important;
}

.modal.modal-delete-overlay {
    display: block !important;
    background-color: rgba(0, 0, 0, 0.5);
}