/* ============================================
   VARIATION 1: Premium Error Modal
   ============================================ */
   /*previous color code: #dc3545*/
.error-modal-content {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-radius: 32px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(220, 53, 69, 0.25);
    overflow: hidden;
    position: relative;
}

.error-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFBB32, #ff6b6b, #FFBB32);
}

.btn-close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(220, 53, 69, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #FFBB32;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-close-modal:hover {
    background: #FFBB32;
    color: white;
    transform: rotate(90deg);
}

/* Error Shake Circle */
.error-shake-circle {
    width: 100px;
    height: 100px;
    margin: 20px auto;
    position: relative;
}

.error-circle-bg {
    stroke: #FFBB32;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeFill 0.8s ease-out forwards;
}

.error-cross {
    stroke: #FFBB32;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeCross 0.5s ease-out 0.4s forwards;
}

.error-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.2);
    animation: pulse 1.5s ease-out infinite;
    pointer-events: none;
}

@keyframes strokeFill {
    100% { stroke-dashoffset: 0; }
}

@keyframes strokeCross {
    100% { stroke-dashoffset: 0; }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.error-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFBB32;
    text-align: center;
    margin: 10px 0 8px;
    letter-spacing: -0.3px;
}

.error-message {
    font-size: 15px;
    /*color: #6c757d;*/
    color: #2159AF;
    text-align: center;
    line-height: 1.5;
    margin: 0 0 6px;
}

.error-suggestion {
    font-size: 13px;
    /*color: #adb5bd;*/
    color: #2159AF;
    text-align: center;
    margin: 0 0 20px;
}

/* ============================================
   VARIATION 2: Glass Modal
   ============================================ */
.glass-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 48px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.glass-modal-body {
    padding: 50px 40px;
    position: relative;
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFBB32;
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 3s ease-in-out infinite;
}

.particle-1 { top: 20%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 60%; right: 15%; animation-delay: 0.5s; width: 6px; height: 6px; }
.particle-3 { bottom: 25%; left: 20%; animation-delay: 1s; width: 3px; height: 3px; }

@keyframes floatParticle {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

.error-float-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.error-circle-float {
    stroke: url(#gradient);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: strokeFill 0.8s ease-out forwards;
}

.error-cross-float {
    stroke: #FFBB32;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeCross 0.5s ease-out 0.4s forwards;
}

.error-content-glow {
    text-align: center;
    margin-top: 25px;
}

.glow-title {
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(135deg, #FFBB32, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

.error-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFBB32, transparent);
    margin: 15px auto;
}

.glow-text {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 25px;
}

.error-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #adb5bd;
    font-size: 13px;
    animation: fadeHint 1s ease-in-out infinite;
}

@keyframes fadeHint {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hint-dots {
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.soft-modal-content {
    background: white;
    border-radius: 40px;
    border: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.soft-modal-body {
    padding: 45px 35px;
    text-align: center;
}

.soft-error-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fff0f0, #ffe0e0);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: softPulse 2s ease-in-out infinite;
}

@keyframes softPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
}

.soft-error-inner svg {
    stroke: #FFBB32;
    animation: softDraw 0.8s ease-out forwards;
}

@keyframes softDraw {
    from {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
    }
    to {
        stroke-dasharray: 100;
        stroke-dashoffset: 0;
    }
}

.soft-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px;
}

.soft-desc {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.soft-footnote {
    font-size: 12px;
    color: #bdc3c7;
}

.auto-dismiss-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f0f0f0;
}

.dismiss-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FFBB32, #ff6b6b);
    animation: progressBar 3s linear forwards;
}

@keyframes progressBar {
    0% { width: 0%; }
    100% { width: 100%; }
}