/* Modal uchun umumiy uslublar */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeInAnimation 0.3s forwards;
}

.modal-body {
    background: white;
    border-radius: 10px;
    text-align: center;
    padding: 40px 20px;
    width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideInAnimation 0.5s forwards;
}

/* SVG belgisi */
.svg-wrapper {
    display: inline-block;
    position: relative;
    width: 120px;
    height: 120px;
}

/* Dumaloq animatsiya */
.circular-animation {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    top: -20px; /* Dumaloqni yuqoriga ko'chirish */
}

.circular-animation circle.path {
    stroke: red;
    stroke-dasharray: 330;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: drawCircleAnimation 0.7s ease-out;
}

/* Xatolik belgisi */
.error-icon {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 10px; /* Xatolik belgisi joyi */
    left: 50%;
    transform: translateX(-50%);
}

.error-icon .error-line {
    stroke: red;
    stroke-width: 4;
    stroke-linecap: round;
    animation: drawErrorAnimation 1s ease-out;
}

@keyframes drawErrorAnimation {
    0% {
        stroke-dasharray: 0, 49;
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dasharray: 49, 330;
        stroke-dashoffset: 0;
    }
}

@keyframes drawCircleAnimation {
    0% {
        stroke-dasharray: 0, 330;
        opacity: 1;
    }
    100% {
        opacity: 0.4;
    }
}

/* Matn va tugma */
h1 {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
}

.close-modal-btn {
    background: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 30px;
}

.close-modal-btn:hover {
    background: #0056b3;
}

/* Animatsiyalar */
@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

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