/* Import all styles in the correct order */

/* Base styles */
@import './base/variables.css';
@import './base/reset.css';
@import './base/utilities.css';

/* Layout styles */
@import './layout/globe.css';

/* Component styles */
@import './components/header.css';
@import './components/search.css';
@import './components/theme-toggle.css';
@import './components/legend.css';
@import './components/info-panel.css';

/* Loading and error states */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--text-color-muted);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-message {
    margin-top: 20px;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.error-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    text-align: center;
}

.error-title {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.error-message {
    color: var(--text-color-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.6;
}

.error-button {
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.error-button:hover {
    background: var(--accent-color-hover);
}