/* ADMIN UI KIT - MODALS & TOASTS */

/* 1. TOASTS */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #1e1e1e;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    min-width: 300px;
    border: 1px solid #333;
    pointer-events: auto;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 2. MODAL OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 3. MODAL BOX */
.modal-box {
    background: white;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon.success {
    background: #dcfce7;
    color: #166534;
}

.modal-icon.error {
    background: #fee2e2;
    color: #991b1b;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.modal-message {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-modal {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.btn-modal.primary {
    background: #1a73e8;
    color: white;
}

.btn-modal.primary:hover {
    background: #1557b0;
}

.btn-modal.secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-modal.secondary:hover {
    background: #e2e8f0;
}

.btn-modal.danger {
    background: #ef4444;
    color: white;
}