/* Dialog System Styles for ConfAI */

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

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

/* Dialog Box */
.dialog-box {
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid #3a3a3a;
    min-width: 400px;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: all 0.2s ease;
}

.dialog-box.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Dialog Header */
.dialog-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
}

.dialog-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

/* Type-specific icon colors */
.dialog-info .dialog-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dialog-success .dialog-icon {
    background: linear-gradient(135deg, #00c853 0%, #00897b 100%);
}

.dialog-error .dialog-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.dialog-warning .dialog-icon {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
}

/* Dialog Content */
.dialog-content {
    padding: 0 24px 24px;
    color: #e0e0e0;
    text-align: center;
}

.dialog-message {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

/* Custom scrollbar for long messages */
.dialog-message::-webkit-scrollbar {
    width: 8px;
}

.dialog-message::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.dialog-message::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

.dialog-message::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* Dialog Footer */
.dialog-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Dialog Buttons */
.dialog-btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dialog-btn:focus {
    outline: none;
}

/* Primary button (OK, Confirm) */
.dialog-btn-primary {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.dialog-btn-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.dialog-btn-primary:active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Danger button (Delete, etc.) */
.dialog-btn-danger {
    background: none;
    border: 2px solid #ef4444;
    color: #ef4444;
}

.dialog-btn-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.dialog-btn-danger:active {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* Secondary button (Cancel) */
.dialog-btn-secondary {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 2px solid #3a3a3a;
}

.dialog-btn-secondary:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
}

.dialog-btn-secondary:active {
    background: #3a3a3a;
    border-color: #4a4a4a;
}

/* Responsive design */
@media (max-width: 600px) {
    .dialog-box {
        min-width: 90%;
        max-width: 90%;
        margin: 20px;
    }

    .dialog-footer {
        flex-direction: column-reverse;
    }

    .dialog-btn {
        width: 100%;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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