
/* ====== контейнер ====== */
.jqm {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    top: -30%;
    justify-content: center;
}

.jqm.hidden {
    display: none;
}

/* ====== overlay ====== */
.jqm-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.5);
}

/* ====== модальное окно ====== */
.jqm-box {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 420px;

    background: #1f2937;
    color: #ffffff;

    border-radius: 12px;
    padding: 20px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);

    opacity: 0;
    transform: scale(0.95);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.jqm-box.show {
    opacity: 1;
    transform: scale(1);
}

/* ====== иконка ====== */
.jqm-icon {
    display: flex;
    justify-content: center;

    margin-bottom: 12px;
}

.jqm-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 2;
    fill: none;
}

/* ====== заголовок ====== */
.jqm-title {
    margin-bottom: 10px;

    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* ====== текст ====== */
.jqm-text {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #d1d5db;
}
.jqm-text-left {text-align: left;}
.jqm-text-cebter {text-align: center;}
.jqm-text-right {text-align: right;}

.jqm-text ol, .jqm-text ul {
    list-style: revert;
    margin: revert;
    padding: revert;
}

/* ====== input / textarea ====== */
.jqm-input,
.jqm-textarea {
    width: 100%;

    margin-bottom: 16px;
    padding: 10px 12px;

    border-radius: 8px;
    border: 1px solid #374151;

    background: #111827;
    color: #ffffff;

    font-size: 14px;
}

.jqm-textarea {
    resize: vertical;
}

.jqm-input:focus,
.jqm-textarea:focus {
    outline: none;
    border-color: #facc15;
}

/* ====== кнопки ====== */
.jqm-buttons {
    display: flex;
    gap: 15px;
}

.jqm-buttons-left {
    justify-content: flex-start;
}

.jqm-buttons-center {
    justify-content: center;
}

.jqm-buttons-right {
    justify-content: flex-end;
}

.jqm-ok,
.jqm-cancel {
    padding: 8px 16px;

    border-radius: 8px;
    border: none;

    font-size: 14px;
    cursor: pointer;
}

.jqm-ok {
    background: #facc15;
    color: #000000;
}

.jqm-ok:hover {
    background: #fde047;
}

.jqm-cancel {
    background: #4b5563;
    color: #ffffff;
}

.jqm-cancel:hover {
    background: #6b7280;
}

/* ====== progress ====== */
.jqm-progress {
    position: absolute;
    left: 0;
    bottom: 0;

    height: 10px; /* толщина полоски */
    width: 100%;

    background: rgba(255, 255, 255, 0.15);
}

.jqm-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;

    height: 100%;
    width: 100%;

    background: #facc15;
    animation: jqm-progress linear forwards;
}

@keyframes jqm-progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* ====== стили ====== */
.jqm-box.info .jqm-icon svg {
    stroke: #60a5fa;
}

.jqm-box.success .jqm-icon svg {
    stroke: #22c55e;
}

.jqm-box.warning .jqm-icon svg {
    stroke: #facc15;
}

.jqm-box.danger .jqm-icon svg {
    stroke: #ef4444;
}
