/* Custom Dialog Styles */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dialog-overlay.dialog-show {
    opacity: 1;
}

.dialog-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    min-width: 320px;
    max-width: 500px;
    width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.dialog-show .dialog-container {
    transform: scale(1) translateY(0);
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.dialog-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

.dialog-close {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.dialog-content {
    padding: 1.5rem;
    text-align: center;
}

.dialog-icon {
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.dialog-icon-success {
    background: #dcfce7;
    color: #16a34a;
}

.dialog-icon-error {
    background: #fee2e2;
    color: #dc2626;
}

.dialog-icon-warning {
    background: #fef3c7;
    color: #d97706;
}

.dialog-icon-info {
    background: #dbeafe;
    color: #2563eb;
}

.dialog-icon-question {
    background: #f3e8ff;
    color: #7c3aed;
}

.dialog-message {
    color: #374151;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.dialog-input-container {
    margin-top: 1rem;
}

.dialog-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.dialog-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dialog-actions {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.dialog-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.dialog-btn-primary {
    background: #3b82f6;
    color: white;
}

.dialog-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dialog-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.dialog-btn-secondary:hover {
    background: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .dialog-container {
        width: 95vw;
        margin: 1rem;
    }
    
    .dialog-header {
        padding: 1rem;
    }
    
    .dialog-content {
        padding: 1rem;
    }
    
    .dialog-actions {
        padding: 0.75rem 1rem;
        flex-direction: column-reverse;
    }
    
    .dialog-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation keyframes */
@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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