/* ==========================================================================
   CEC Entrenador IA — Premium Chat Styles
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
    --cec-bg-primary: #0a0e27;
    --cec-bg-secondary: #111538;
    --cec-bg-tertiary: #181d45;
    --cec-surface: rgba(255, 255, 255, 0.04);
    --cec-surface-hover: rgba(255, 255, 255, 0.08);
    --cec-glass: rgba(255, 255, 255, 0.06);
    --cec-glass-border: rgba(255, 255, 255, 0.1);
    --cec-glass-strong: rgba(255, 255, 255, 0.1);
    --cec-blue: #4f9cf7;
    --cec-teal: #00d4aa;
    --cec-gradient: linear-gradient(135deg, #4f9cf7 0%, #00d4aa 100%);
    --cec-gradient-reverse: linear-gradient(135deg, #00d4aa 0%, #4f9cf7 100%);
    --cec-gradient-subtle: linear-gradient(135deg, rgba(79, 156, 247, 0.15) 0%, rgba(0, 212, 170, 0.15) 100%);
    --cec-gradient-user: linear-gradient(135deg, #4f9cf7 0%, #3b82f6 50%, #6366f1 100%);
    --cec-text-primary: #f0f2f5;
    --cec-text-secondary: rgba(240, 242, 245, 0.65);
    --cec-text-muted: rgba(240, 242, 245, 0.4);
    --cec-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cec-radius-sm: 8px;
    --cec-radius-md: 14px;
    --cec-radius-lg: 20px;
    --cec-radius-xl: 24px;
    --cec-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --cec-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --cec-shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
    --cec-shadow-glow: 0 0 40px rgba(79, 156, 247, 0.15);
    --cec-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --cec-transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Container ---------- */
.cec-chat-container {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    height: 700px;
    margin: 2rem auto;
    border-radius: var(--cec-radius-xl);
    background: var(--cec-bg-primary);
    border: 1px solid var(--cec-glass-border);
    box-shadow: var(--cec-shadow-lg), var(--cec-shadow-glow);
    font-family: var(--cec-font);
    overflow: hidden;
    color: var(--cec-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated gradient border glow */
.cec-chat-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: calc(var(--cec-radius-xl) + 1px);
    background: linear-gradient(135deg, rgba(79, 156, 247, 0.3), rgba(0, 212, 170, 0.1), rgba(79, 156, 247, 0.05), rgba(0, 212, 170, 0.3));
    background-size: 300% 300%;
    animation: cecGradientBorder 8s ease infinite;
    z-index: -1;
}

@keyframes cecGradientBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Header ---------- */
.cec-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-bottom: 1px solid var(--cec-glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-shrink: 0;
}

.cec-chat-header__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cec-chat-header__avatar {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--cec-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(79, 156, 247, 0.3);
    animation: cecPulseAvatar 3s ease-in-out infinite;
}

.cec-chat-header__avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--cec-gradient);
    opacity: 0.2;
    animation: cecPulseRing 3s ease-in-out infinite;
}

@keyframes cecPulseAvatar {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes cecPulseRing {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.15); opacity: 0; }
}

.cec-chat-header__avatar-emoji {
    font-size: 22px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.cec-chat-header__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cec-chat-header__title {
    margin: 0;
    padding: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--cec-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cec-chat-header__subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--cec-text-secondary);
    font-weight: 500;
}

.cec-chat-header__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cec-teal);
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.6);
    animation: cecStatusPulse 2s ease-in-out infinite;
}

@keyframes cecStatusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.cec-chat-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cec-chat-header__action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--cec-glass-border);
    background: var(--cec-surface);
    color: var(--cec-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--cec-transition);
}

.cec-chat-header__action:hover {
    background: var(--cec-surface-hover);
    color: var(--cec-text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: rotate(-30deg);
}

/* ---------- Messages Area ---------- */
.cec-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(79, 156, 247, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 170, 0.03) 0%, transparent 50%),
        var(--cec-bg-primary);
}

/* Custom scrollbar */
.cec-messages-area::-webkit-scrollbar {
    width: 6px;
}

.cec-messages-area::-webkit-scrollbar-track {
    background: transparent;
}

.cec-messages-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.cec-messages-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---------- Message Bubbles ---------- */
.cec-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: cecSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.cec-message--no-animate {
    animation: none;
}

.cec-message--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.cec-message--ai {
    align-self: flex-start;
}

@keyframes cecSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cec-message__avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: var(--cec-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(79, 156, 247, 0.25);
    margin-top: 2px;
}

.cec-message__content {
    position: relative;
}

.cec-message__bubble {
    padding: 14px 18px;
    border-radius: var(--cec-radius-lg);
    font-size: 14.5px;
    line-height: 1.65;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* AI message — glassmorphism */
.cec-message--ai .cec-message__bubble {
    background: var(--cec-glass);
    border: 1px solid var(--cec-glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--cec-radius-lg) var(--cec-radius-lg) var(--cec-radius-lg) 6px;
    color: var(--cec-text-primary);
}

/* User message — gradient */
.cec-message--user .cec-message__bubble {
    background: var(--cec-gradient-user);
    border: none;
    border-radius: var(--cec-radius-lg) var(--cec-radius-lg) 6px var(--cec-radius-lg);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(79, 156, 247, 0.25);
}

.cec-message__time {
    font-size: 11px;
    color: var(--cec-text-muted);
    margin-top: 6px;
    padding: 0 4px;
}

.cec-message--user .cec-message__time {
    text-align: right;
}

/* Markdown content styles inside AI bubbles */
.cec-message__bubble p {
    margin: 0 0 8px 0;
}

.cec-message__bubble p:last-child {
    margin-bottom: 0;
}

.cec-message__bubble strong {
    font-weight: 600;
    color: var(--cec-blue);
}

.cec-message--user .cec-message__bubble strong {
    color: #ffffff;
}

.cec-message__bubble em {
    font-style: italic;
    color: var(--cec-teal);
}

.cec-message--user .cec-message__bubble em {
    color: rgba(255, 255, 255, 0.9);
}

.cec-message__bubble ul,
.cec-message__bubble ol {
    margin: 8px 0;
    padding-left: 20px;
}

.cec-message__bubble li {
    margin-bottom: 4px;
}

.cec-message__bubble code {
    background: rgba(79, 156, 247, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.cec-message__bubble pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    border-radius: var(--cec-radius-sm);
    overflow-x: auto;
    margin: 8px 0;
}

.cec-message__bubble pre code {
    background: none;
    padding: 0;
}

.cec-message__bubble hr {
    border: none;
    border-top: 1px solid var(--cec-glass-border);
    margin: 12px 0;
}

.cec-message__bubble h3,
.cec-message__bubble h4 {
    margin: 12px 0 6px;
    font-weight: 600;
    color: var(--cec-blue);
}

.cec-message__bubble h3 {
    font-size: 15px;
}

.cec-message__bubble h4 {
    font-size: 14px;
}

/* File attachment badge inside message */
.cec-message__file-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--cec-radius-sm);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.cec-message__file-badge svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* ---------- Typing Indicator ---------- */
.cec-typing-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 8px;
    animation: cecFadeIn 0.3s ease both;
}

@keyframes cecFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.cec-typing-indicator__avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: var(--cec-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.cec-typing-indicator__dots {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 18px;
    background: var(--cec-glass);
    border: 1px solid var(--cec-glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--cec-radius-lg) var(--cec-radius-lg) var(--cec-radius-lg) 6px;
}

.cec-typing-indicator__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cec-text-secondary);
    animation: cecBounce 1.4s ease-in-out infinite;
}

.cec-typing-indicator__dot:nth-child(2) {
    animation-delay: 0.15s;
}

.cec-typing-indicator__dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes cecBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
        background: var(--cec-blue);
    }
}

/* ---------- Suggestions ---------- */
.cec-suggestions {
    display: flex;
    gap: 8px;
    padding: 8px 24px 4px;
    overflow-x: auto;
    flex-shrink: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cec-suggestions::-webkit-scrollbar {
    display: none;
}

.cec-suggestion-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 100px;
    border: 1px solid var(--cec-glass-border);
    background: var(--cec-surface);
    color: var(--cec-text-secondary);
    font-family: var(--cec-font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--cec-transition);
    white-space: nowrap;
    line-height: 1.3;
}

.cec-suggestion-btn:hover {
    background: var(--cec-gradient-subtle);
    border-color: rgba(79, 156, 247, 0.3);
    color: var(--cec-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(79, 156, 247, 0.15);
}

.cec-suggestion-btn:active {
    transform: translateY(0);
}

/* ---------- File Zone ---------- */
.cec-file-zone {
    padding: 0 24px;
    flex-shrink: 0;
}

.cec-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--cec-gradient-subtle);
    border: 1px solid rgba(79, 156, 247, 0.2);
    border-radius: var(--cec-radius-sm);
    animation: cecFadeIn 0.3s ease both;
}

.cec-file-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--cec-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cec-file-name::before {
    content: '📎';
}

.cec-file-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--cec-text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--cec-transition);
    line-height: 1;
}

.cec-file-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ---------- Drop Overlay ---------- */
.cec-drop-overlay {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--cec-radius-xl);
    animation: cecFadeIn 0.2s ease both;
}

.cec-drop-overlay__content {
    text-align: center;
    padding: 48px;
    border: 2px dashed rgba(79, 156, 247, 0.4);
    border-radius: var(--cec-radius-lg);
    background: var(--cec-gradient-subtle);
    animation: cecPulseDropZone 1.5s ease-in-out infinite;
}

@keyframes cecPulseDropZone {
    0%, 100% { border-color: rgba(79, 156, 247, 0.3); }
    50% { border-color: rgba(0, 212, 170, 0.5); }
}

.cec-drop-overlay__content svg {
    color: var(--cec-blue);
    margin-bottom: 12px;
    animation: cecFloatUp 2s ease-in-out infinite;
}

@keyframes cecFloatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.cec-drop-overlay__content p {
    font-size: 18px;
    font-weight: 600;
    color: var(--cec-text-primary);
    margin: 0 0 6px;
}

.cec-drop-overlay__content span {
    font-size: 13px;
    color: var(--cec-text-secondary);
}

/* ---------- Input Area ---------- */
.cec-input-area {
    padding: 12px 24px 16px;
    border-top: 1px solid var(--cec-glass-border);
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    flex-shrink: 0;
}

.cec-input-area__wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 8px 8px 4px;
    background: var(--cec-glass);
    border: 1px solid var(--cec-glass-border);
    border-radius: var(--cec-radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color var(--cec-transition), box-shadow var(--cec-transition);
}

.cec-input-area__wrapper:focus-within {
    border-color: rgba(79, 156, 247, 0.4);
    box-shadow: 0 0 20px rgba(79, 156, 247, 0.1);
}

.cec-file-input {
    display: none;
}

.cec-input-area__file-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--cec-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--cec-transition);
}

.cec-input-area__file-btn:hover {
    background: var(--cec-surface-hover);
    color: var(--cec-blue);
}

.cec-input-area__textarea {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--cec-text-primary);
    font-family: var(--cec-font);
    font-size: 14.5px;
    line-height: 1.5;
    padding: 8px 4px;
    resize: none;
    outline: none;
    max-height: 120px;
    overflow-y: auto;
    scrollbar-width: none;
}

.cec-input-area__textarea::-webkit-scrollbar {
    display: none;
}

.cec-input-area__textarea::placeholder {
    color: var(--cec-text-muted);
}

.cec-input-area__send-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: none;
    background: var(--cec-gradient);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--cec-transition);
    box-shadow: 0 4px 16px rgba(79, 156, 247, 0.3);
}

.cec-input-area__send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
    transform: scale(0.92);
}

.cec-input-area__send-btn:not(:disabled):hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(79, 156, 247, 0.45);
}

.cec-input-area__send-btn:not(:disabled):active {
    transform: scale(0.95);
}

.cec-input-area__footer {
    padding: 8px 4px 0;
    text-align: center;
}

.cec-input-area__hint {
    font-size: 11px;
    color: var(--cec-text-muted);
    letter-spacing: 0.02em;
}

/* ---------- Login Prompt ---------- */
.cec-login-prompt {
    max-width: 480px;
    margin: 3rem auto;
    padding: 48px 40px;
    text-align: center;
    border-radius: var(--cec-radius-xl);
    background: var(--cec-bg-primary);
    border: 1px solid var(--cec-glass-border);
    box-shadow: var(--cec-shadow-lg), var(--cec-shadow-glow);
    font-family: var(--cec-font);
    color: var(--cec-text-primary);
}

.cec-login-prompt__icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--cec-gradient);
    box-shadow: 0 8px 32px rgba(79, 156, 247, 0.3);
}

.cec-login-prompt__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.cec-login-prompt__text {
    font-size: 15px;
    color: var(--cec-text-secondary);
    line-height: 1.6;
    margin: 0 0 28px;
}

.cec-login-prompt__button {
    display: inline-block;
    padding: 14px 36px;
    background: var(--cec-gradient);
    color: #ffffff;
    border-radius: 100px;
    font-family: var(--cec-font);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--cec-transition);
    box-shadow: 0 4px 20px rgba(79, 156, 247, 0.3);
}

.cec-login-prompt__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(79, 156, 247, 0.45);
    color: #ffffff;
    text-decoration: none;
}

/* ---------- Error Message ---------- */
.cec-message--error .cec-message__bubble {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* ---------- Date Separator ---------- */
.cec-date-separator {
    text-align: center;
    padding: 12px 0;
    font-size: 12px;
    color: var(--cec-text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cec-date-separator::before,
.cec-date-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--cec-glass-border);
}

/* ---------- Responsive ---------- */

/* Tablets */
@media (max-width: 860px) {
    .cec-chat-container {
        margin: 1rem;
        max-width: none;
        height: calc(100vh - 2rem);
        border-radius: var(--cec-radius-lg);
    }

    .cec-chat-container::before {
        border-radius: calc(var(--cec-radius-lg) + 1px);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .cec-chat-container {
        margin: 0;
        border-radius: 0;
        height: 100vh;
        height: 100dvh;
    }

    .cec-chat-container::before {
        border-radius: 0;
    }

    .cec-chat-header {
        padding: 14px 16px;
    }

    .cec-chat-header__avatar {
        width: 40px;
        height: 40px;
    }

    .cec-chat-header__avatar-emoji {
        font-size: 19px;
    }

    .cec-chat-header__title {
        font-size: 15px;
    }

    .cec-messages-area {
        padding: 16px;
        gap: 6px;
    }

    .cec-message {
        max-width: 92%;
    }

    .cec-message__bubble {
        padding: 12px 14px;
        font-size: 14px;
    }

    .cec-message__avatar {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 14px;
    }

    .cec-suggestions {
        padding: 8px 16px 4px;
        gap: 6px;
    }

    .cec-suggestion-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .cec-input-area {
        padding: 10px 12px 14px;
    }

    .cec-input-area__wrapper {
        padding: 6px;
        border-radius: var(--cec-radius-md);
    }

    .cec-input-area__file-btn,
    .cec-input-area__send-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .cec-input-area__textarea {
        font-size: 14px;
        padding: 6px 2px;
    }

    .cec-file-zone {
        padding: 0 12px;
    }

    .cec-login-prompt {
        margin: 1rem;
        padding: 36px 24px;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .cec-message {
        gap: 8px;
    }

    .cec-message__avatar {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 12px;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .cec-message,
    .cec-typing-indicator,
    .cec-file-info,
    .cec-drop-overlay {
        animation: none;
    }

    .cec-chat-header__avatar,
    .cec-chat-header__avatar::after,
    .cec-chat-header__status-dot,
    .cec-chat-container::before,
    .cec-typing-indicator__dot,
    .cec-drop-overlay__content,
    .cec-drop-overlay__content svg {
        animation: none;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Print ---------- */
@media print {
    .cec-chat-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .cec-input-area,
    .cec-suggestions,
    .cec-file-zone,
    .cec-drop-overlay,
    .cec-typing-indicator,
    .cec-chat-header__right {
        display: none !important;
    }
}
