/* Custom Dialog System - Matching Modal Theme */
.custom-dialog-overlay {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10002;
    align-items: center;
    justify-content: center;
    animation: dialogOverlayFadeIn 0.2s ease-out;
}

@keyframes dialogOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-dialog {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: dialogSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

@keyframes dialogSlideIn {
    from { 
        opacity: 0; 
        transform: scale(0.95) translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.custom-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
    background: white;
}

.custom-dialog-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.custom-dialog-body {
    padding: 24px 32px;
    max-height: 60vh;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    background: white;
}

.custom-dialog-body p {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

.custom-dialog-footer {
    padding: 20px 32px 24px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
    background: white;
}

.custom-dialog-footer .btn {
    min-width: 100px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.custom-dialog-footer .btn-primary {
    background: #6366f1;
    color: white;
}

.custom-dialog-footer .btn-primary:hover {
    background: #4f46e5;
}

.custom-dialog-footer .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.custom-dialog-footer .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.dialog-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
    line-height: 1.5;
}

.dialog-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
