/**
 * Chatbot Input - Base Styles
 * 
 * Glassmorphism Input mit rounded Design.
 * 
 * @package SMG_Mall
 * @since 2.1.0
 */

/* ========================================
   Input Container - Glassmorphism
   ======================================== */

.chatbot-modal__input-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 0;
    border-radius: 24px;
    overflow: visible;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(227, 30, 36, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.chatbot-modal__input-inner:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 60px rgba(227, 30, 36, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.chatbot-modal__input-inner:focus-within {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 60px rgba(227, 30, 36, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Input Field
   ======================================== */

.chatbot-input {
    flex: 1;
    min-height: 56px;
    max-height: 120px;
    padding: 16px 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    line-height: 1.5;
    font-family: inherit;
    color: #1f2937;
    resize: none;
    transition: all 0.3s ease;
    outline: none;
}

.chatbot-input::placeholder {
    color: transparent; /* Placeholder wird durch Custom Element ersetzt */
}

/* Voice Active State - Extra Padding für Feedback */
.chatbot-input--voice-active {
    padding-left: 200px;
}

/* ========================================
   Button Container
   ======================================== */

.chatbot-modal__input-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
}

/* ========================================
   Buttons - Rounded mit Hover Effects
   ======================================== */

.chatbot-voice-btn,
.chatbot-send-btn {
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Voice Button */
.chatbot-voice-btn {
    background: transparent;
    color: #9ca3af;
}

.chatbot-voice-btn:hover {
    background: rgba(var(--smg-500-rgb, 227, 30, 36), 0.05);
    color: var(--smg-500, var(--color-primary, #e31e24));
    transform: scale(1.1);
}

.chatbot-voice-btn:active {
    transform: scale(0.95);
}

/* Voice Button - Recording State */
.chatbot-voice-btn--recording {
    background: rgba(var(--smg-500-rgb, 239, 68, 68), 0.1);
    color: var(--smg-500, #ef4444);
}

.chatbot-voice-btn--recording:hover {
    background: rgba(var(--smg-500-rgb, 239, 68, 68), 0.2);
}

/* Voice Button - Processing State */
.chatbot-voice-btn--processing {
    color: #9ca3af;
    cursor: wait;
}

.chatbot-voice-btn--processing:hover {
    transform: none;
    background: transparent;
}

/* Send Button */
.chatbot-send-btn {
    background: var(--smg-500, var(--color-primary, #e31e24));
    color: white;
    box-shadow: 0 4px 12px rgba(var(--smg-500-rgb, 227, 30, 36), 0.3);
}

.chatbot-send-btn:hover {
    background: var(--smg-700, var(--color-primary-dark, #c41a1f));
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(var(--smg-500-rgb, 227, 30, 36), 0.4);
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chatbot-send-btn:disabled:hover {
    transform: none;
}

/* ========================================
   Icon Animations
   ======================================== */

.chatbot-input__icon--spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

