/* Statyczna strona błędu - wyświetlana gdy aplikacja nie może się zainicjalizować */

.error-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    z-index: 10000;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.error-page.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-page__container {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.error-page__icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: #fff3e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-page__icon svg {
    width: 60px;
    height: 60px;
    fill: #ff9800;
}

.error-page__title {
    font-size: 32px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.error-page__message {
    font-size: 18px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 30px;
}

.error-page__details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 30px;
    text-align: left;
}

.error-page__details-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 10px;
}

.error-page__details-text {
    font-size: 15px;
    color: #555;
    margin: 0;
    line-height: 1.7;
    word-break: break-all;
}

.error-page__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-page__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.error-page__button--primary {
    background: #1976d2;
    color: white;
}

.error-page__button--primary:hover {
    background: #1565c0;
}

.error-page__button--secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.error-page__button--secondary:hover {
    background: #eeeeee;
}

.error-page__footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.error-page__footer-text {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.error-page__spinner {
    display: none;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto 0;
}

.error-page__spinner.visible {
    display: block;
}

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

/* Animacja wejścia */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-page.visible .error-page__container {
    animation: fadeIn 0.4s ease;
}

/* Responsywność */
@media (max-width: 480px) {
    .error-page__container {
        padding: 24px;
    }

    .error-page__title {
        font-size: 22px;
    }

    .error-page__message {
        font-size: 14px;
    }

    .error-page__icon {
        width: 80px;
        height: 80px;
    }

    .error-page__icon svg {
        width: 40px;
        height: 40px;
    }

    .error-page__actions {
        flex-direction: column;
    }

    .error-page__button {
        width: 100%;
    }
}
