/* Elegant Dialog Styles - Based on Reference Design */

/* Dialog card with elegant shadows */
.elegant-dialog-card {
    background: #ffffff;
    box-shadow:
        0 25px 70px -10px rgba(0, 0, 0, 0.2),
        0 10px 30px -5px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

/* Decorative corner elements */
.elegant-corner-deco {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.15;
}

.elegant-corner-deco::before,
.elegant-corner-deco::after {
    content: '';
    position: absolute;
    background: #6b7c8f;
}

.elegant-corner-tl {
    top: 12px;
    left: 12px;
}

.elegant-corner-tl::before {
    top: 0;
    left: 0;
    width: 2px;
    height: 20px;
}

.elegant-corner-tl::after {
    top: 0;
    left: 0;
    width: 20px;
    height: 2px;
}

.elegant-corner-br {
    bottom: 12px;
    right: 12px;
}

.elegant-corner-br::before {
    bottom: 0;
    right: 0;
    width: 2px;
    height: 20px;
}

.elegant-corner-br::after {
    bottom: 0;
    right: 0;
    width: 20px;
    height: 2px;
}

/* Artistic pattern overlay */
.elegant-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.02;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, #6b7c8f 10px, #6b7c8f 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, #6b7c8f 10px, #6b7c8f 11px);
    pointer-events: none;
}

/* Subtle border accent */
.elegant-border-accent {
    position: relative;
}

.elegant-border-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
}

/* Type-specific border colors */
.elegant-border-success::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.elegant-border-warning::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.elegant-border-danger::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.elegant-border-info::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* Icon container with shimmer effect */
.elegant-icon-container {
    background: linear-gradient(135deg, #f0f4f8 0%, #e1e8f0 100%);
    border: 1px solid rgba(107, 124, 143, 0.1);
    position: relative;
    overflow: hidden;
}

.elegant-icon-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(107, 124, 143, 0.1) 50%, transparent 70%);
    animation: elegant-shimmer 3s ease-in-out infinite;
}

@keyframes elegant-shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.elegant-icon-svg {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(107, 124, 143, 0.2));
}

/* Type-specific icon colors */
.elegant-icon-success {
    stroke: #10b981;
}

.elegant-icon-warning {
    stroke: #f59e0b;
}

.elegant-icon-danger {
    stroke: #ef4444;
}

.elegant-icon-info {
    stroke: #3b82f6;
}

/* Elegant button styles */
.elegant-btn-primary {
    background: #6b7c8f;
    color: white;
    transition: all 0.3s ease;
    border: none;
}

.elegant-btn-primary:hover {
    background: #5a6b7d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 124, 143, 0.3);
}

.elegant-btn-secondary {
    background: transparent;
    border: 1.5px solid #d1d5db;
    color: #6b7280;
    transition: all 0.3s ease;
}

.elegant-btn-secondary:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    color: #374151;
}

/* Type-specific primary button colors */
.elegant-btn-success {
    background: #10b981;
}

.elegant-btn-success:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.elegant-btn-warning {
    background: #f59e0b;
}

.elegant-btn-warning:hover {
    background: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.elegant-btn-danger {
    background: #ef4444;
}

.elegant-btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.elegant-btn-info {
    background: #3b82f6;
}

.elegant-btn-info:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Close button */
.elegant-btn-close {
    transition: all 0.2s ease;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
}

.elegant-btn-close:hover {
    color: #374151;
    transform: scale(1.1);
}

/* Fade in animation */
.elegant-fade-in {
    animation: elegantFadeIn 0.4s ease-out;
}

@keyframes elegantFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Elegant divider */
.elegant-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

/* Overlay backdrop */
.elegant-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
