/**
 * Necudah Dialog Styles
 *
 * Modern dialogs matching the lavivme confirmation-modal design.
 * Supports both confirm and prompt modes.
 */

/* Dialog Container */
.necudah-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.necudah-dialog.active {
    opacity: 1;
    visibility: visible;
}

/* Overlay */
.necudah-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Content Box */
.necudah-dialog-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.25s ease;
    z-index: 1000000;
}

.necudah-dialog.active .necudah-dialog-content {
    transform: scale(1) translateY(0);
}

/* Close Button */
.necudah-dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    z-index: 1;
}

.necudah-dialog-close:hover {
    color: #374151;
}

/* Body */
.necudah-dialog-body {
    padding: 32px 28px 24px;
    text-align: center;
}

/* Icon */
.necudah-dialog-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.necudah-dialog-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

/* Title */
.necudah-dialog-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Message */
.necudah-dialog-message {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.necudah-dialog-message strong {
    font-weight: 700;
    color: #111827;
}

/* Input (prompt mode) */
.necudah-dialog-input-wrap {
    margin: 0 0 24px 0;
    text-align: left;
}

.necudah-dialog-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.necudah-dialog-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: #fff;
}

.necudah-dialog-input::placeholder {
    color: #9ca3af;
}

/* Buttons */
.necudah-dialog-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.necudah-dialog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    font-family: inherit;
}

.necudah-dialog-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Cancel */
.necudah-dialog-btn-cancel {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.necudah-dialog-btn-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Confirm */
.necudah-dialog-btn-confirm {
    color: white;
}

.necudah-dialog-btn-confirm:hover {
    filter: brightness(0.9);
}

/* Responsive */
@media (max-width: 480px) {
    .necudah-dialog-content {
        width: 95%;
        max-width: none;
        margin: 16px;
    }

    .necudah-dialog-body {
        padding: 28px 20px 20px;
    }

    .necudah-dialog-buttons {
        grid-template-columns: 1fr;
    }

    .necudah-dialog-btn {
        padding: 14px 20px;
    }
}

/* RTL Support */
[dir="rtl"] .necudah-dialog-close {
    right: auto;
    left: 16px;
}
