/* ================================
          AI MODE MODAL – ISOLATED STYLES
          ================================ */

/* Modal content */
#ai-mode-modalContent {
    border-radius: 16px;
    overflow: hidden;
}

/* Scale entrance animation */
#ai-mode-modalDialog {
    transform: scale(0.92);
    transition: transform 0.3s ease-in-out;
}

.modal.show #ai-mode-modalDialog {
    transform: scale(1);
}

/* Header */
#ai-mode-modalHeader {
    padding: 1rem 1.25rem;
}

/* Close button (TOP-LEFT) */
#ai-mode-closeBtn {
    position: absolute;
    top: 12px;
    left: 12px;
    margin: 0;
    font-size: 1.4rem;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

#ai-mode-closeBtn:hover {
    opacity: 1;
}

#ai-mode-closeBtn span {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
}

/* Body */
#ai-mode-modalBody {
    padding: 1.75rem 1.5rem;
}

/* AI highlight */
#ai-mode-aiHighlight {
    color: #007bff;
    animation: ai-mode-pulseGlow 2s infinite;
}

@keyframes ai-mode-pulseGlow {
    0%   { text-shadow: 0 0 0 rgba(0,123,255,0.35); }
    50%  { text-shadow: 0 0 10px rgba(0,123,255,0.6); }
    100% { text-shadow: 0 0 0 rgba(0,123,255,0.35); }
}

/* Footer buttons */
#ai-mode-modalFooter {
    padding-bottom: 1.5rem;
}

#ai-mode-cancelBtn,
#ai-mode-aiBtn {
    border-radius: 30px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#ai-mode-cancelBtn:hover,
#ai-mode-aiBtn:hover {
    transform: translateY(-2px);
}

#ai-mode-aiBtn:hover {
    box-shadow: 0 8px 18px rgba(0,123,255,0.3);
}