/**
 * Styles for Summer Regiment Tracker
 *
 * @package Summer_Regiment_Tracker
 */

/* ==================== General Styles ==================== */

.srt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.srt-back-link {
    margin: 0 0 10px 0;
}

.srt-back-link a {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
}

.srt-back-link a:hover {
    text-decoration: underline;
}

.srt-form-header h2 {
    margin-top: 0;
}

/* ==================== Calendar Styles ==================== */

#srt-calendar {
    margin: 20px 0;
}

.fc .fc-view-harness {
    height: auto !important;
}

.fc .fc-scroller {
    overflow: visible !important;
}

.fc-event {
    cursor: pointer;
}

/* Event type colors */
.srt-event-type-move_in {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.srt-event-type-move_out {
    background-color: #F44336;
    border-color: #F44336;
}

.srt-event-type-camp_weekend {
    background-color: #2196F3;
    border-color: #2196F3;
}

.srt-event-type-rehearsal_block {
    background-color: #9C27B0;
    border-color: #9C27B0;
}

.srt-event-type-travel_day {
    background-color: #FF9800;
    border-color: #FF9800;
}

.srt-event-type-performance_day {
    background-color: #E91E63;
    border-color: #E91E63;
}

.srt-event-type-housing_checkin {
    background-color: #00BCD4;
    border-color: #00BCD4;
}

/* General summer events */
.srt-event-type-summer_camp {
    background-color: #4DB6AC;
    border-color: #4DB6AC;
}

.srt-event-type-sports_camp {
    background-color: #66BB6A;
    border-color: #66BB6A;
}

.srt-event-type-music_camp {
    background-color: #AB47BC;
    border-color: #AB47BC;
}

.srt-event-type-college_visit {
    background-color: #5C6BC0;
    border-color: #5C6BC0;
}

.srt-event-type-college_orientation {
    background-color: #42A5F5;
    border-color: #42A5F5;
}

.srt-event-type-internship {
    background-color: #26A69A;
    border-color: #26A69A;
}

.srt-event-type-volunteer_work {
    background-color: #66BB6A;
    border-color: #66BB6A;
}

.srt-event-type-family_vacation {
    background-color: #29B6F6;
    border-color: #29B6F6;
}

.srt-event-type-family_reunion {
    background-color: #FFA726;
    border-color: #FFA726;
}

.srt-event-type-birthday {
    background-color: #FF7043;
    border-color: #FF7043;
}

.srt-event-type-graduation {
    background-color: #7E57C2;
    border-color: #7E57C2;
}

/* Administrative events */
.srt-event-type-medical {
    background-color: #EF5350;
    border-color: #EF5350;
}

.srt-event-type-uniform_fitting {
    background-color: #607D8B;
    border-color: #607D8B;
}

.srt-event-type-admin_deadline {
    background-color: #F44336;
    border-color: #F44336;
}

.srt-event-type-meeting {
    background-color: #78909C;
    border-color: #78909C;
}

.srt-event-type-other {
    background-color: #9E9E9E;
    border-color: #9E9E9E;
}

.srt-event-type-other {
    background-color: #9E9E9E;
    border-color: #9E9E9E;
}

/* ==================== Event Form Styles ==================== */

.srt-form-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.srt-form-section h3 {
    margin-top: 0;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.srt-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.srt-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.srt-form-field label {
    font-weight: bold;
    margin-bottom: 5px;
}

.srt-form-field input[type="text"],
.srt-form-field input[type="datetime-local"],
.srt-form-field select,
.srt-form-field textarea {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.srt-form-field textarea {
    resize: vertical;
}

.srt-form-field input[type="checkbox"] {
    margin-right: 5px;
}

/* Time Blocks */
#srt-time-blocks-container,
#srt-travel-legs-container {
    margin-top: 15px;
}

.srt-time-block,
.srt-travel-leg {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
}

.srt-time-block h4,
.srt-travel-leg h4 {
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.srt-remove-block {
    background: #dc3232;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.srt-remove-block:hover {
    background: #c11f1f;
}

.srt-add-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.srt-add-button:hover {
    background: #005a87;
}

/* Travel sections toggle */
.srt-travel-section,
.srt-flight-section {
    display: none;
}

/* Form buttons */
.srt-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.srt-button-primary {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.srt-button-primary:hover {
    background: #005a87;
}

.srt-button-danger {
    background: #dc3232;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.srt-button-danger:hover {
    background: #c11f1f;
}

/* ==================== Dashboard Styles ==================== */

.srt-dashboard {
    margin: 20px 0;
}

.srt-dashboard-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.srt-dashboard-section h3 {
    margin-top: 0;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.srt-dashboard-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.srt-dashboard-item {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.srt-dashboard-item:hover {
    background: #e9e9e9;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.srt-member-name {
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    padding: 3px 8px;
    background: #dbeafe;
    border-radius: 3px;
    display: inline-block;
}

/* Calendar member name styling - two line display */
.srt-calendar-member-name {
    font-size: 10px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
    line-height: 1.2;
}

.srt-dashboard-item h4 {
    margin-top: 0;
    color: #0073aa;
}

.srt-dashboard-item p {
    margin: 5px 0;
    font-size: 14px;
}

.srt-no-events {
    color: #666;
    font-style: italic;
}

/* ==================== Event List Styles ==================== */

.srt-event-list {
    margin: 20px 0;
}

.srt-event-item {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.srt-event-item:hover {
    background: #f9f9f9;
    border-color: #0073aa;
}

.srt-event-item h3 {
    margin: 0 0 10px 0;
    color: #0073aa;
}

.srt-event-item .srt-event-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
}

.srt-event-item .srt-event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.srt-event-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.srt-event-badge-travel {
    background: #FF9800;
    color: white;
}

.srt-event-badge-flight {
    background: #2196F3;
    color: white;
}

/* ==================== Modal Styles ==================== */

.srt-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.srt-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.srt-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
}

.srt-modal-close:hover,
.srt-modal-close:focus {
    color: #000;
}

.srt-modal-content h2 {
    margin-top: 0;
    color: #0073aa;
}

.srt-modal-content h3 {
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
    margin-top: 20px;
}

.srt-travel-leg-details {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.srt-travel-leg-details h4 {
    margin-top: 0;
}

.srt-booked {
    color: #4CAF50;
    font-weight: bold;
}

.srt-not-booked {
    color: #F44336;
    font-weight: bold;
}

/* ==================== Responsive Styles ==================== */

@media screen and (max-width: 768px) {
    .srt-form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .srt-dashboard-list {
        grid-template-columns: 1fr;
    }
    
    .srt-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .srt-event-item .srt-event-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* ==================== Loading Spinner ==================== */

.srt-loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: srt-spin 1s linear infinite;
    margin: 20px auto;
}

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

/* ==================== Utility Classes ==================== */

.srt-text-center {
    text-align: center;
}

.srt-mt-20 {
    margin-top: 20px;
}

.srt-mb-20 {
    margin-bottom: 20px;
}

.srt-hidden {
    display: none;
}

.srt-error {
    color: #dc3232;
    background: #ffe9e9;
    padding: 10px;
    border: 1px solid #dc3232;
    border-radius: 4px;
    margin: 10px 0;
}

.srt-success {
    color: #4CAF50;
    background: #e9f9e9;
    padding: 10px;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    margin: 10px 0;
}
/* ==================== Mapbox Autocomplete ==================== */

.srt-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 2px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
}

.srt-autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.srt-autocomplete-item:hover {
    background: #f5f5f5;
}

.srt-autocomplete-item:last-child {
    border-bottom: none;
}

.srt-form-field:has(#location_name) {
    position: relative;
}
/* ==================== Flight Search Links ==================== */

.srt-flight-search-links {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.srt-flight-search-links p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #333;
}

.srt-flight-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.srt-flight-buttons .button,
.srt-flight-buttons .button-small {
    margin: 0;
    padding: 8px 16px;
    font-size: 13px;
    text-decoration: none;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: inline-block;
    transition: background 0.2s;
}

.srt-flight-buttons .button:hover,
.srt-flight-buttons .button-small:hover {
    background: #135e96;
    color: white;
}

.srt-flight-buttons .button:nth-child(1) {
    background: #4285f4;
}

.srt-flight-buttons .button:nth-child(1):hover {
    background: #3367d6;
}

.srt-flight-buttons .button:nth-child(2) {
    background: #ff6600;
}

.srt-flight-buttons .button:nth-child(2):hover {
    background: #e55a00;
}

.srt-flight-buttons .button:nth-child(3) {
    background: #304cb2;
}

.srt-flight-buttons .button:nth-child(3):hover {
    background: #273a8f;
}

/* ==================== Settings & Alerts UI ==================== */

/* Settings Grid Layout */
.srt-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.srt-setting-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.srt-setting-card:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.srt-setting-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0073aa, #005177);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.srt-setting-icon .dashicons {
    color: white;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.srt-setting-content {
    flex: 1;
}

.srt-setting-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #23282d;
    margin-bottom: 8px;
}

.srt-input-large,
.srt-select-large {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.srt-input-large:focus,
.srt-select-large:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.srt-help-text {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.srt-setting-action {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0891b2;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.srt-setting-action .button-large {
    padding: 12px 30px;
    font-size: 16px;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.srt-setting-action .button-large .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.srt-message {
    font-size: 14px;
    font-weight: 500;
}

.srt-message.success {
    color: #10b981;
}

.srt-message.error {
    color: #ef4444;
}

/* Price Alerts Container */
.srt-alerts-container {
    background: #fff;
    border-radius: 8px;
    padding: 0;
}

.srt-alerts-container .srt-alert-card {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s;
}

.srt-alerts-container .srt-alert-card:last-child {
    border-bottom: none;
}

.srt-alerts-container .srt-alert-card:hover {
    background-color: #f8f9fa;
}

.srt-alert-info {
    flex: 1;
}

.srt-alert-title {
    font-size: 16px;
    font-weight: 600;
    color: #23282d;
    margin-bottom: 6px;
}

.srt-alert-details {
    font-size: 14px;
    color: #666;
}

.srt-alert-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.srt-dashboard-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #23282d;
    margin-bottom: 15px;
}

.srt-dashboard-section h4 .dashicons {
    color: #0073aa;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* ==================== Flight Linking Styles ==================== */

.srt-flight-suggestions {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.srt-flight-suggestions h5 {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 16px;
}

.srt-suggestion-card {
    background: white;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.srt-suggestion-card:last-child {
    margin-bottom: 0;
}

.srt-suggestion-route {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.srt-suggestion-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

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

.srt-link-flight-btn,
.srt-unlink-flight-btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.srt-link-flight-btn {
    background: #28a745;
    color: white;
}

.srt-link-flight-btn:hover {
    background: #218838;
}

.srt-unlink-flight-btn {
    background: #dc3545;
    color: white;
}

.srt-unlink-flight-btn:hover {
    background: #c82333;
}

.srt-linked-flight-group {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.srt-linked-flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.srt-linked-flight-title {
    font-weight: 600;
    color: #155724;
    font-size: 16px;
}

.srt-price-comparison {
    background: white;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
}

.srt-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.srt-price-row:last-child {
    border-bottom: none;
    font-weight: 600;
}

.srt-price-label {
    color: #666;
    font-size: 14px;
}

.srt-price-value {
    font-size: 16px;
    font-weight: 500;
}

.srt-price-savings {
    color: #28a745;
    font-weight: 600;
}

.srt-price-better {
    background: #d4edda;
    padding: 2px 8px;
    border-radius: 4px;
    color: #155724;
    font-size: 13px;
    margin-left: 8px;
}

.srt-flight-leg-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin: 0 4px;
}

.srt-flight-group-badge {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
}

/* ==================== Invitations & Parent Linking ==================== */

.srt-invitation-section {
    padding: 15px 0;
}

.srt-member-code-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.srt-member-code-card h4,
.srt-member-code-card h5 {
    margin: 0 0 12px 0;
    color: white;
}

.srt-code-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
}

.srt-permanent-code {
    background: rgba(255, 255, 255, 0.2);
    color: #3b82f6;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex: 1;
    text-align: center;
}

.srt-member-code-card .description {
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0 0 0;
    font-size: 14px;
}

.srt-member-code-card .button {
    background: white;
    color: #667eea;
    border: none;
}

.srt-member-code-card .button:hover {
    background: rgba(255, 255, 255, 0.9);
}

.srt-invitation-actions {
    margin: 20px 0;
    text-align: center;
}

.srt-invitations-container {
    margin-top: 20px;
}

.srt-no-invitations {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.srt-invitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.srt-invitation-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.2s;
}

.srt-invitation-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.srt-invite-pending {
    border-left: 4px solid #ffc107;
}

.srt-invite-accepted {
    border-left: 4px solid #28a745;
    background: #f8fff8;
}

.srt-invite-revoked {
    border-left: 4px solid #dc3545;
    opacity: 0.7;
}

.srt-invitation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.srt-invitation-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.srt-invite-pending .srt-invitation-status {
    color: #ff9800;
}

.srt-invite-accepted .srt-invitation-status {
    color: #28a745;
}

.srt-invite-revoked .srt-invitation-status {
    color: #dc3545;
}

.srt-invitation-code {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.srt-invitation-details p {
    margin: 8px 0;
    font-size: 14px;
}

.srt-invitation-details strong {
    color: #495057;
}

.srt-invitation-details small {
    color: #6c757d;
}

.srt-invitation-card .button {
    margin: 8px 4px 0 0;
}

.srt-revoke-invite {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.srt-revoke-invite:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Parent Code Entry */

.srt-code-entry-section {
    padding: 15px;
}

.srt-code-form {
    margin-top: 15px;
}

.srt-form-inline {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 600px;
}

.srt-code-input {
    flex: 1;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.srt-code-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.srt-code-form .button-primary {
    white-space: nowrap;
}

.srt-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.srt-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.srt-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.srt-copy-code {
    cursor: pointer;
}

.srt-copy-code .dashicons {
    vertical-align: middle;
    margin-right: 2px;
}

/* Responsive */

@media (max-width: 768px) {
    .srt-invitations-grid {
        grid-template-columns: 1fr;
    }
    
    .srt-form-inline {
        flex-direction: column;
    }
    
    .srt-code-input {
        width: 100%;
    }
}

/* Travel Leg Improvements */

.srt-travel-leg {
    position: relative;
    margin-bottom: 20px;
}

.srt-leg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.srt-leg-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.srt-remove-block {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.srt-remove-block:hover {
    background: #c82333;
}

.srt-airport-code {
    text-transform: uppercase !important;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 16px;
}

.srt-airport-name {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-style: italic;
}

.srt-booking-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.srt-booking-toggle {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.srt-booking-toggle input[type="checkbox"] {
    margin-right: 8px;
}

.srt-booking-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.srt-round-trip-toggle {
    margin-right: 8px;
}

.srt-flight-only,
.srt-non-flight {
    transition: opacity 0.2s;
}

.description {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.srt-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.srt-checkbox-group label {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.srt-checkbox-group input[type="checkbox"] {
    margin-right: 5px;
}

        width: 100%;
    }
    
    .srt-code-display {
        flex-direction: column;
    }
    
    .srt-permanent-code {
        width: 100%;
    }
}
