/* AH Private Batch - Premium Modal System */
/* Adapted from login-premium.css for dashboard-wide usage */

.premium-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.premium-modal {
    background: var(--card-bg, #ffffff);
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    position: relative;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.premium-modal-overlay.active .premium-modal {
    transform: scale(1);
}

[data-theme="dark"] .premium-modal {
    background: var(--bg-secondary, #1e293b);
    border-color: rgba(255, 255, 255, 0.1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.modal-icon.success {
    background: #dcfce7;
    color: #16a34a;
}

[data-theme="dark"] .modal-icon.success {
    background: rgba(22, 163, 74, 0.2);
}

.modal-icon.error {
    background: #fee2e2;
    color: #dc2626;
}

[data-theme="dark"] .modal-icon.error {
    background: rgba(220, 38, 38, 0.2);
}

.modal-icon.info,
.modal-icon.confirm {
    background: #e0e7ff;
    color: #4f46e5;
}

[data-theme="dark"] .modal-icon.info,
[data-theme="dark"] .modal-icon.confirm {
    background: rgba(79, 70, 229, 0.2);
}

.premium-modal h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary, #1e293b);
}

.premium-modal p {
    font-size: 15px;
    color: var(--text-secondary, #64748b);
    margin-bottom: 28px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    flex: 1;
}

.modal-btn-primary {
    background: var(--primary-color, #4f46e5);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.modal-btn-secondary {
    background: var(--bg-secondary, #f1f5f9);
    color: var(--text-secondary, #64748b);
}

.modal-btn-secondary:hover {
    background: var(--bg-hover, #e2e8f0);
}

[data-theme="dark"] .modal-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

@media (max-width: 480px) {
    .premium-modal {
        padding: 24px;
        width: 100%;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-btn {
        width: 100%;
    }
}