/* ============================================ */
/* SISTEMA DE MENSAJERÍA - ESTILOS ORIGINALES */
/* ============================================ */

/* Chat Overlay Modal */
#chat-overlay-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#chat-overlay-modal.show {
    opacity: 1;
    visibility: visible;
}

.chat-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.chat-overlay-container {
    position: relative;
    z-index: 1;
    width: 95%;
    max-width: 1200px;
    height: 85vh;
    max-height: 800px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#chat-overlay-modal.show .chat-overlay-container {
    transform: translateX(0);
}

.chat-overlay-container .chat-container {
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
}

/* Chat List */
.chat-list {
    width: 350px;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-list-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.chat-list-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chat-controls {
    display: flex;
    gap: 8px;
}

.chat-control-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-control-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

#conversations-list {
    flex: 1;
    overflow-y: auto;
}

.chat-list::-webkit-scrollbar {
    width: 6px;
}

.chat-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* Chat Items */
.chat-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-item:hover {
    background: var(--bg-secondary);
}

.chat-item.active {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
}

.chat-item-avatar {
    position: relative;
    margin-right: 12px;
    flex-shrink: 0;
}

.chat-item-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.chat-item-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.chat-item-status.online {
    background: #10b981;
    animation: pulse 2s infinite;
}

.chat-item-status.offline {
    background: #6b7280;
}

.chat-item-info {
    flex: 1;
    min-width: 0;
}

.chat-item-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.badge {
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.badge.large {
    padding: 3px 8px;
    font-size: 0.8rem;
}

.delete-chat-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-item:hover .delete-chat-btn {
    opacity: 0.6;
    transform: translateX(0);
}

.delete-chat-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    opacity: 1;
    transform: scale(1.05);
}

.delete-chat-btn svg {
    width: 14px;
    height: 14px;
}

/* Chat Window */
.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
    padding: 40px;
}

.chat-empty svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.chat-empty h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.chat-empty p {
    margin: 0;
    font-size: 1rem;
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.chat-back-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    border-radius: 6px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.chat-back-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.chat-header-avatar {
    margin-right: 12px;
}

.chat-header-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.chat-header-info h3 {
    margin: 0 0 2px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-header-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    max-width: 70%;
}

.message.own-message {
    align-self: flex-end;
}

.message.other-message {
    align-self: flex-start;
}

.message-content {
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
    word-wrap: break-word;
}

.message.own-message .message-content {
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.other-message .message-content {
    border-bottom-left-radius: 4px;
}

.message-content p {
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
}

/* Chat Input */
.chat-input {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.chat-input button {
    background: var(--accent);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.chat-input button:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.chat-input button:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

/* Loading states */
.loading-conversations {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.loading-conversations .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    #chat-overlay-modal {
        padding: 0;
    }

    .chat-overlay-container {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .chat-overlay-container .chat-container {
        border-radius: 0;
    }

    .chat-list {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .chat-list.hidden {
        display: none;
    }

    .chat-window.active {
        display: flex;
    }

    .chat-back-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .delete-chat-btn {
        opacity: 1;
        transform: translateX(0);
        padding: 8px;
    }

    .chat-item-actions {
        gap: 4px;
    }

    .message {
        max-width: 85%;
    }

    .chat-messages {
        padding: 16px;
    }
}

/* Lista de conversaciones */
.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conversation-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.conversation-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.conversation-avatar {
    position: relative;
    flex-shrink: 0;
}

.conversation-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.conversation-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.conversation-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-preview p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.unread-badge {
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    white-space: nowrap;
}

.conversation-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-conversation-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.delete-conversation-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0 0 24px 0;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

/* Modal de chat */
.chat-overlay-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.chat-modal {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    height: 80vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.chat-user-details h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

.chat-options-btn,
.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.chat-options-btn:hover,
.chat-close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Mensajes del chat */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    max-width: 80%;
}

.own-message {
    align-self: flex-end;
}

.other-message {
    align-self: flex-start;
}

.message-content {
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
}

.own-message .message-content {
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.other-message .message-content {
    border-bottom-left-radius: 4px;
}

.message-content p {
    margin: 0 0 4px 0;
    word-wrap: break-word;
    line-height: 1.4;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
}

.no-messages {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-messages-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Input de mensaje */
.chat-input-container {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

#chat-message-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#chat-message-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.send-message-btn {
    background: var(--accent);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.send-message-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.send-message-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.chat-input-info {
    margin-top: 8px;
    text-align: center;
}

.chat-input-info small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Spinner pequeño para botón de envío */
.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error messages */
.error-message {
    text-align: center;
    padding: 40px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #ef4444;
    margin: 20px;
}

.btn-retry {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
    .messaging-container {
        padding: 16px;
    }

    .messaging-modal {
        height: 95vh;
        margin: 0;
        border-radius: 16px 16px 0 0;
    }

    .messaging-modal-header {
        padding: 16px 20px;
    }

    .messaging-modal-header h2 {
        font-size: 1.3rem;
    }

    .messaging-modal-content {
        padding: 16px;
    }

    .chat-modal {
        height: 90vh;
        margin: 0;
        border-radius: 16px 16px 0 0;
    }

    .conversation-card {
        padding: 12px;
        gap: 12px;
    }

    .conversation-avatar img {
        width: 48px;
        height: 48px;
    }

    .message {
        max-width: 90%;
    }

    .chat-messages {
        padding: 16px;
    }

    .messaging-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .messaging-modal-overlay {
        padding: 0;
    }

    .messaging-modal {
        height: 100vh;
        border-radius: 0;
    }

    .chat-overlay-modal {
        padding: 0;
    }

    .chat-modal {
        height: 100vh;
        border-radius: 0;
    }

    .conversation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .conversation-time {
        align-self: flex-end;
    }
}

/* ============================================ */
/* FIXES DARK MODE & EMOJI PICKER */
/* ============================================ */

/* Emoji Picker Fix */
#emoji-picker {
    position: absolute;
    bottom: 80px;
    left: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    width: 300px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    /* Controlado por JS, default none */
    flex-wrap: wrap;
    gap: 5px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#emoji-picker span {
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
    color: var(--text-primary);
    /* Asegurar visibilidad */
}

#emoji-picker span:hover {
    background: var(--bg-tertiary);
}

/* Scrollbar para emoji picker */
#emoji-picker::-webkit-scrollbar {
    width: 6px;
}

#emoji-picker::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* Image Preview Container */
#image-preview-container {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: none;
    /* Controlado por JS */
}

/* Dark Mode Override para Inputs de Chat */
[data-theme="dark"] .chat-input input,
[data-theme="dark"] #message-input {
    background: rgba(255, 255, 255, 0.05) !important;
    /* Ligeramente más claro que el fondo */
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .chat-input input:focus,
[data-theme="dark"] #message-input:focus {
    border-color: var(--accent) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Emojis y botones en dark mode */
[data-theme="dark"] .emoji-btn,
[data-theme="dark"] .chat-action-btn {
    color: var(--text-secondary);
    opacity: 0.7;
    transition: opacity 0.2s;
}

[data-theme="dark"] .emoji-btn:hover,
[data-theme="dark"] .chat-action-btn:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* Fix Shadow sidebar en Dark Mode */
[data-theme="dark"] .chat-list {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none !important;
    /* Eliminar sombras raras */
}

[data-theme="dark"] .chat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .chat-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .chat-item.active {
    background: rgba(236, 72, 153, 0.15);
    /* Accent con transparencia */
    border-left-color: var(--accent);
}

/* Mensaje efímero - Receiver (Empty bubble fix) */
/* Asegurar que si hay un p vacío no colapse totalmente si tiene padding */
.message-bubble {
    min-height: 20px;
}

/* Botones de acción del input (Clip, Emoji) - High Specificity */
.chat-input .input-action-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    /* Evitar colapso flex */
    padding: 8px !important;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.chat-input .input-action-btn:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    color: var(--accent) !important;
    transform: scale(1.1);
}

.chat-input .input-action-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
    display: block;
}

/* CRITICAL: Ensure buttons are ALWAYS visible */
.chat-input .input-action-btn,
.chat-input .send-message-btn {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Botón de Enviar - High Specificity */
.chat-input .send-message-btn {
    background: rgba(236, 72, 153, 0.1) !important;
    color: var(--accent) !important;
    border: 2px solid var(--accent) !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.chat-input .send-message-btn:hover {
    background: var(--accent) !important;
    color: white !important;
}

.chat-input .send-message-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent !important;
    color: var(--text-secondary) !important;
    border-color: var(--border) !important;
}

/* Dark Mode overrides */
[data-theme="dark"] .chat-input .input-action-btn {
    color: #94a3b8;
    /* Slate-400 */
}

[data-theme="dark"] .chat-input .input-action-btn:hover {
    color: #f472b6;
    /* Pink-400 */
    background: rgba(255, 255, 255, 0.1) !important;
}