:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --danger-color: #ef476f;
    --success-color: #06d6a0;
    --warning-color: #ffd166;
    --info-color: #118ab2;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --card-border-radius: 0.75rem;
    --transition: all 0.3s ease;
    --base-font-size: 16px; /* Base font size for the app */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: var(--dark-color);
    font-size: var(--base-font-size);
}

.hidden {
    display: none;
}

.container {
    max-width: 1200px;
}

/* Header Styling */
.app-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    box-shadow: var(--box-shadow);
}

.app-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.app-subtitle {
    font-weight: 300;
    opacity: 0.85;
}

/* Card Styling */
.card {
    border: none;
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.weather-card {
    height: 100%;
    margin-bottom: 1rem;
}

.weather-icon {
    font-size: 1.75rem;
    color: var(--secondary-color);
}

.form-card {
    margin-bottom: 2rem;
}

.form-card .card-title {
    font-weight: 600;
    color: var(--primary-color);
}

/* Form Controls */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
    border-color: var(--primary-color);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-danger {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-outline-danger:hover {
    background-color: var(--danger-color);
    color: white;
}

/* Forecast Elements */
.forecast-day {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.forecast-day:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.forecast-unavailable {
    background-color: #f8f9fa;
    opacity: 0.8;
}

.temperature {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.min-temp {
    color: #6c757d;
    font-weight: normal;
}

/* Alerts */
.alert {
    border-radius: var(--card-border-radius);
    border: none;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

/* Loading Indicator */
.loading-container {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(5px);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background-color: white;
    border-top: 1px solid #dee2e6;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Error Messages */
.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    :root {
        --base-font-size: 15px;
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .app-subtitle {
        font-size: 0.95rem;
    }
    
    .card-header h5 {
        font-size: 1.1rem;
    }
    
    /* Form controls */
    .form-control, .form-select {
        padding: 0.6rem 0.9rem;
        font-size: 0.95rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Card spacing */
    .card-body {
        padding: 1.25rem;
    }
    
    /* Forecast elements */
    .forecast-day {
        padding: 0.875rem;
        margin-bottom: 0.625rem;
    }
    
    .temperature {
        font-size: 1rem;
    }
    
    /* Destinations header responsive styles */
    .destinations-header h2 {
        font-size: 1.5rem;
    }
    
    .destinations-header .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .sort-options {
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    :root {
        --base-font-size: 14px;
    }
    
    .app-title {
        font-size: 1.75rem;
    }
    
    .app-subtitle {
        font-size: 0.85rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .destinations-header h2 {
        font-size: 1.35rem;
    }
    
    .destinations-header .btn-group {
        width: 100%;
    }
    
    .destinations-header .btn {
        flex: 1;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    /* Card and container spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Timeline elements */
    .timeline-date {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .timeline-dot {
        width: 0.875rem;
        height: 0.875rem;
        left: -2.25rem;
    }
}

/* Timeline UI elements */
.timeline-container {
    position: relative;
    padding-left: 2rem;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 1rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 2px solid white;
    z-index: 1;
}

.timeline-date {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.timeline-connector {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: var(--primary-color);
}

.timeline-connector-line {
    flex-grow: 1;
    height: 2px;
    background-color: rgba(67, 97, 238, 0.2);
    margin: 0 0.5rem;
}

.trip-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.trip-dates {
    margin-left: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 1rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.sort-options {
    margin-left: 1rem;
}

/* Destinations header styling */
.destinations-header h2 {
    font-size: 1.75rem;
} 
