/**
 * Veltra Air WebMCP Demo Styles
 * 
 * Clean, modern styling for the WebMCP demo interface
 */

/* Container */
.veltra-webmcp-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
.veltra-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.veltra-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 700;
}

.veltra-subtitle {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Introduction */
.veltra-intro {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #667eea;
    margin-bottom: 40px;
    border-radius: 4px;
}

.veltra-intro p {
    margin: 0;
}

/* Tool Sections */
.veltra-tool-section {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.veltra-tool-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.veltra-tool-section h2 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 1.8em;
    font-weight: 600;
}

.tool-description {
    color: #6c757d;
    margin: 0 0 25px 0;
    font-size: 1.05em;
}

/* Forms */
.veltra-form {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e1e4e8;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

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

/* Buttons */
.veltra-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.veltra-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.veltra-btn:active {
    transform: translateY(0);
}

/* Response Display */
.veltra-response {
    margin-top: 20px;
}

.veltra-response pre {
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 20px;
    overflow-x: auto;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
}

.veltra-response pre code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    color: #24292e;
}

/* Success/Error styling */
.response-success {
    border-left: 4px solid #28a745;
}

.response-error {
    border-left: 4px solid #dc3545;
    background: #fff5f5 !important;
}

/* Available Dates Display */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.date-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
}

.date-item:hover {
    background: #e9ecef;
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,102,204,0.15);
}

.date-item .date {
    display: block;
    font-size: 0.95em;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.date-item .flight-count {
    display: block;
    font-size: 0.85em;
    color: #6c757d;
}

.success-message h3 {
    color: #0066cc;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.success-message p {
    color: #495057;
    margin-bottom: 15px;
}


/* Info Section */
.veltra-info-section {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
}

.veltra-info-section h2 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.6em;
}

.tool-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tool-list li {
    padding: 12px;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    margin-bottom: 10px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.9em;
}

.tool-list li code {
    color: #667eea;
    font-weight: 600;
}

.info-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

.info-note strong {
    color: #856404;
}

/* Responsive Design */
@media (max-width: 768px) {
    .veltra-webmcp-container {
        padding: 15px;
        margin: 20px auto;
    }

    .veltra-header h1 {
        font-size: 2em;
    }

    .veltra-tool-section {
        padding: 20px;
    }

    .veltra-tool-section h2 {
        font-size: 1.5em;
    }

    .veltra-response pre {
        font-size: 0.8em;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .veltra-header h1 {
        font-size: 1.6em;
    }

    .veltra-subtitle {
        font-size: 1em;
    }

    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Code styling improvements */
code {
    background: #f6f8fa;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.9em;
}

/* Animation for tool sections */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.veltra-tool-section {
    animation: slideIn 0.5s ease-out;
}

/* Print styles */
@media print {
    .veltra-header {
        background: #667eea;
        color: white;
    }

    .veltra-btn {
        display: none;
    }

    .veltra-tool-section {
        page-break-inside: avoid;
    }
}

/* ========================================
   BOOKING JOURNEY STYLES
   ======================================== */

/* Step Badges */
.step-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* State Monitor */
.veltra-state-monitor {
    background: #fff9e6;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.state-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.state-header h3 {
    margin: 0;
    color: #856404;
}

.veltra-btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
    background: #ffc107;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.veltra-btn-small:hover {
    background: #ffb300;
    transform: translateY(-1px);
}

/* Flight Results */
.flight-results {
    margin-top: 30px;
}

.flight-results h3 {
    color: #667eea;
    margin-bottom: 20px;
}

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

.flight-card {
    background: white;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.flight-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

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

.flight-number {
    font-weight: 700;
    font-size: 1.1em;
    color: #667eea;
}

.flight-price {
    font-weight: 700;
    font-size: 1.2em;
    color: #28a745;
}

.flight-route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e1e4e8;
    border-bottom: 1px solid #e1e4e8;
}

.flight-airport {
    text-align: center;
}

.flight-airport strong {
    display: block;
    font-size: 1.3em;
    color: #333;
}

.flight-airport small {
    display: block;
    color: #6c757d;
    margin: 5px 0;
}

.flight-time {
    display: block;
    font-weight: 600;
    color: #667eea;
    margin-top: 5px;
}

.flight-arrow {
    font-size: 1.5em;
}

.flight-details {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    font-size: 0.9em;
    color: #6c757d;
}

.select-flight-btn {
    width: 100%;
    margin-top: 10px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* Journey Response Section */
.journey-response {
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
}

/* Highlight Section */
.highlight-section {
    background: #f0f7ff;
    border: 2px solid #667eea;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.veltra-btn-secondary {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.veltra-btn-secondary:hover {
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

.veltra-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    font-size: 1.1em;
    padding: 16px 32px;
}

.veltra-btn-success:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

/* Confirmation Notice */
.confirmation-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.confirmation-notice p {
    margin: 0;
    color: #856404;
}

/* Section Divider */
.section-divider {
    border: none;
    border-top: 3px solid #e1e4e8;
    margin: 60px 0 40px 0;
}

.section-title {
    color: #495057;
    text-align: center;
    margin-bottom: 40px;
}

/* Response Info Style */
.response-info {
    border-left: 4px solid #17a2b8;
    background: #e7f7f8 !important;
}

/* Enhanced Tool List */
.tool-list li {
    padding: 12px;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    margin-bottom: 10px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.9em;
}

.tool-list li code {
    color: #667eea;
    font-weight: 600;
    background: none;
    padding: 0;
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .flight-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .state-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .flight-route {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .flight-arrow {
        transform: rotate(90deg);
    }
}
