* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    display: flex;
    background: #f8fafc;
    direction: ltr;
}

body.rtl {
    direction: rtl;
}

.sidebar {
    width: 400px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.rtl .sidebar {
    border-right: none;
    border-left: 1px solid #e2e8f0;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sidebar-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-header p {
    opacity: 0.9;
    font-size: 14px;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.date-picker-section {
    margin-bottom: 24px;
}

.date-picker-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

#datePicker {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

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

.day-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.day-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.day-card.departure-day {
    border-left: 4px solid #3b82f6;
}

.day-card.arrival-day {
    border-left: 4px solid #10b981;
}

.rtl .day-card.departure-day {
    border-left: 1px solid #e2e8f0;
    border-right: 4px solid #3b82f6;
}

.rtl .day-card.arrival-day {
    border-left: 1px solid #e2e8f0;
    border-right: 4px solid #10b981;
}

.day-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-header.departure {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.day-header.arrival {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.day-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
}

.day-date {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.day-type {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
    display: inline-block;
}

.day-type.departure {
    background: #3b82f6;
    color: white;
}

.day-type.arrival {
    background: #10b981;
    color: white;
}

.add-activity-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-activity-btn:hover {
    background: #5a67d8;
}

.activities-container {
    padding: 16px 20px;
}

.flight-item {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.flight-item.departure {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.flight-item.arrival {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
}

.flight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.flight-header:hover {
    background: rgba(255, 255, 255, 0.3);
}

.flight-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flight-icon {
    font-size: 18px;
    color: #0ea5e9;
}

.flight-icon.departure {
    color: #3b82f6;
}

.flight-icon.arrival {
    color: #10b981;
}

.flight-title {
    font-weight: 600;
    color: #1f2937;
}

.flight-status {
    font-size: 12px;
    color: #6b7280;
    margin-left: 8px;
}

.rtl .flight-status {
    margin-left: 0;
    margin-right: 8px;
}

.fold-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.fold-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #374151;
}

.flight-content {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.flight-content.expanded {
    max-height: 500px;
    padding: 0 10px 10px 10px;
}

.flight-form {
    display: grid;
    gap: 12px;
}

.flight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.activity-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: none;
}

.activity-form.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background 0.2s;
}

.file-input-label:hover {
    background: #e5e7eb;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
	justify-content:center;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-generate{
    /*background: #10b981;*/
    background: limegreen;
    color: white;
}

.btn-generate:hover {
    background: #059669;
}

.btn-load {
    background: lightgray;
    color: black;
}
.btn-load:hover {
    background: #4b5563;
    color: white;
}

.btn-save {
    background: skyblue;
    color: white;
}
.btn-save:hover {
    background: royalblue;
}


.action-buttons {
  display: flex;
  justify-content: center;  /* Center horizontally */
  gap: 16px;                /* Space between buttons */
  margin: 32px 0;           /* Optional: vertical spacing */
}


.btn-flight {
    background: #0ea5e9;
    color: white;
}

.btn-flight:hover {
    background: #0284c7;
}

.saved-activity {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.saved-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.saved-activity-title {
    font-weight: 500;
    color: #065f46;
    flex: 1;
}

.saved-activity-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #059669;
}

.saved-flight {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.saved-flight.departure {
    background: #dbeafe;
    border-color: #3b82f6;
}

.saved-flight.arrival {
    background: #d1fae5;
    border-color: #10b981;
}

.saved-flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.saved-flight-header:hover {
    background: rgba(255, 255, 255, 0.3);
}

.saved-flight-title {
    font-weight: 500;
    color: #0c4a6e;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.saved-flight.departure .saved-flight-title {
    color: #1e3a8a;
}

.saved-flight.arrival .saved-flight-title {
    color: #064e3b;
}

.saved-flight-content {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.saved-flight-content.expanded {
    max-height: 200px;
    padding: 0 16px 12px 16px;
}

.flight-details {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.flight-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.activity-badge {
    background: #dcfce7;
    color: #166534;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.map-container {
    flex: 1;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.map-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 1000;
}

.map-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.map-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
}

.header-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.header-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.language-btn {
    min-width: 120px;
}

.region-btn {
    min-width: 140px;
}

.login-btn {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.login-btn:hover {
    background: #059669;
    border-color: #059669;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    z-index: 1001;
    max-height: 300px;
    overflow-y: auto;
    top: 100%;
    left: 0;
}

.rtl .dropdown-content {
    left: auto;
    right: 0;
}

.dropdown.show .dropdown-content {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

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

.dropdown-item:hover {
    background: #f9fafb;
}

.dropdown-item.selected {
    background: #667eea;
    color: white;
}

#map {
    flex: 1;
    position: relative;
}

.map-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    font-size: 14px;
    color: #6b7280;
}

.rtl .map-info {
    left: auto;
    right: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.timezone-display {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 50vh;
    }
    
    .map-container {
        height: 50vh;
    }

    .map-header {
        padding: 12px 16px;
    }

    .map-header-left,
    .map-header-right {
        gap: 8px;
    }

    .header-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .language-btn,
    .region-btn {
        min-width: auto;
    }
}

/* Add this to your style.css */

.generate-section {
    padding: 16px 12px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    background: #f8fafc;
}

.generate-section .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
}
.autocomplete-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
}

.autocomplete-suggestions li:hover {
    background-color: #f0f0f0;
}
