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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-color);
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    text-align: center;
    margin: 20px 0;
}

.loading-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    min-width: 300px;
    max-width: 400px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    animation: spin 1s linear infinite;
}

.loading-content h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.loading-content p {
    color: var(--label-color);
    margin-bottom: 20px;
    font-size: 1rem;
}

#loadingProgress {
    width: 100%;
    height: 8px;
    margin: 15px 0;
    border: none;
    border-radius: 4px;
    background: var(--border-color);
    appearance: none;
}

#loadingProgress::-webkit-progress-bar {
    background: var(--border-color);
    border-radius: 4px;
}

#loadingProgress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--primary-color), #8b9dc3);
    border-radius: 4px;
}

#loadingProgress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #8b9dc3);
    border-radius: 4px;
}

.loading-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--label-color);
}

.error {
    background: #ff6b6b;
    color: white;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}
