/* Confirm Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease-in-out;
}

.modal {
    background: var(--white, #fff);
    border-radius: 1rem;
    max-width: 400px;
    width: 95%;
    animation: modalPop 0.2s ease;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    padding-top: 1rem;
    border: 1px solid var(--border, rgba(5, 5, 5, 0.08));
}

.modal .title {
    font-size: 1.25em;
    font-weight: 500;
    text-align: center;
    color: var(--text, #1d1c1b);
}

.modal .desc {
    color: var(--secondary, #646362);
    text-align: center;
}

.modal .actions {
    display: flex;
    gap: 1px;
    border-top: 1px solid var(--border, rgba(5, 5, 5, 0.08));
}

.modal .btn {
    width: 100%;
    padding: .5rem 0;
    border: none;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.modal .yes {
    background: var(--text, #1d1c1b);
    color: var(--white, #fff);
    border-radius: 0 0 0 1rem;
}

.modal .no {
    background: transparent;
    color: var(--text, #1d1c1b);
    border-radius: 0 0 1rem 0;
}

/* Notify Toast */
.notify-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: fit-content;
    max-width: 95%;
}

.notify-toast {
    background: #1d1c1b;
    padding: .5rem 1rem;
    border-radius: 1.5rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    box-shadow: 0 4px 12px rgba(5, 5, 5, 0.08);
    opacity: 0;
    transform: translateY(-200%) scale(.5);
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    font-size: .875rem;
    font-weight: 500;
    width: fit-content;
    max-width: 95vw;
    margin: 0 auto;
}

.notify-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notify-icon {
    font-weight: bold;
    width: 1.25rem;
    height: 1.25rem;
}

.notify-loading { color: #fff; }
.notify-success { color: #4caf50; }
.notify-error   { color: #f44336; }
.notify-warn    { color: #ff9800; }
.notify-info    { color: #2196f3; }

.spin { animation: spin 1s infinite linear; }

.spin svg {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes modalPop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


