/* Dialog/Overlay System */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dialog-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.dialog-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dialog-overlay.show .dialog-container {
    transform: scale(1);
}

.dialog-header {
    padding: 20px 24px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dialog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dialog-title i {
    font-size: 1.1rem;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.dialog-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.dialog-body {
    padding: 16px 24px 24px 24px;
}

.dialog-message {
    color: #555;
    line-height: 1.5;
    margin: 0;
    font-size: 1rem;
}

.dialog-footer {
    padding: 0 24px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.dialog-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.dialog-button.primary {
    background: #007bff;
    color: white;
}

.dialog-button.primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.dialog-button.secondary {
    background: #6c757d;
    color: white;
}

.dialog-button.secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.dialog-button.danger {
    background: #dc3545;
    color: white;
}

.dialog-button.danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Dialog Types */
.dialog-container.error .dialog-title {
    color: #dc3545;
}

.dialog-container.error .dialog-title i {
    color: #dc3545;
}

.dialog-container.success .dialog-title {
    color: #28a745;
}

.dialog-container.success .dialog-title i {
    color: #28a745;
}

.dialog-container.info .dialog-title {
    color: #17a2b8;
}

.dialog-container.info .dialog-title i {
    color: #17a2b8;
}

.dialog-container.warning .dialog-title {
    color: #ffc107;
}

.dialog-container.warning .dialog-title i {
    color: #ffc107;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dialog-container {
        width: 95%;
        margin: 20px;
    }
    
    .dialog-header {
        padding: 16px 20px 0 20px;
    }
    
    .dialog-body {
        padding: 12px 20px 20px 20px;
    }
    
    .dialog-footer {
        padding: 0 20px 20px 20px;
        flex-direction: column;
    }
    
    .dialog-button {
        width: 100%;
    }
}

/* Animation Classes */
.dialog-fade-in {
    animation: dialogFadeIn 0.3s ease;
}

.dialog-fade-out {
    animation: dialogFadeOut 0.3s ease;
}

@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);
    }
}
