/* Icon Container */
.icon-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }
}

.error-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.error-icon svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
    stroke-width: 3;
}

/* Text Content */
.error-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-align: center;
}

.error-message {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 500;
}

/* Buttons Container */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    padding: 18px 32px;
    border-radius: 18px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    color: #3b82f6;
    border: 2px solid #c7d2fe;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.btn svg {
    width: 24px;
    height: 24px;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-primary.loading .spinner {
    display: block;
}

.btn-text {
    display: contents;
    align-items: center;
    justify-content: center;
}

.btn-primary.loading .btn-text {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {

    .icon-container {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }

    .error-icon {
        width: 60px;
        height: 60px;
    }

    .error-icon svg {
        width: 35px;
        height: 35px;
    }

    .error-title {
        font-size: 28px;
    }

    .error-message {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }


    .icon-container {
        width: 90px;
        height: 90px;
    }

    .error-icon {
        width: 55px;
        height: 55px;
    }

    .error-icon svg {
        width: 30px;
        height: 30px;
    }

    .error-title {
        font-size: 24px;
    }

    .error-message {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .btn {
        padding: 16px 28px;
        font-size: 22px;
    }
}