/* ==========================================================================
   input-dock.css - 하단 고정 퀵 칩, 인라인 이미지 프리뷰, 텍스트 입력창 & 버튼 (모바일 피팅)
   ========================================================================== */

/* 하단 고정 입력 도크 */
.input-dock {
    background: #181a1f;
    border-top: 1px solid #272a31;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

/* 📷 이미지 첨부 인라인 프리뷰 바 (50px 썸네일) */
.image-preview-bar {
    display: flex;
    align-items: center;
    padding: 2px 4px 4px 4px;
    gap: 8px;
    animation: fadeIn 0.2s ease;
}

.image-preview-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #f43f5e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    background: #181b20;
    flex-shrink: 0;
}

.image-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

.preview-remove-btn:active {
    background: #f43f5e;
}

.image-preview-label {
    font-size: 0.75rem;
    color: #fda4af;
    font-weight: 500;
}

/* 입력 컨트롤 폼 */
.input-controls {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    width: 100%;
}

.dock-btn {
    background: #232730;
    border: 1px solid #333845;
    color: #e5e7eb;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    padding: 0;
    box-sizing: border-box;
}

.dock-btn:active {
    background: #333845;
    transform: scale(0.95);
}

.upload-btn {
    font-size: 1.15rem;
}

#chatInput {
    flex: 1;
    min-width: 0;
    background: #121316;
    border: 1px solid #333845;
    color: #f3f4f6;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.35;
    max-height: 80px;
    min-height: 38px;
    height: 38px;
    resize: none;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

#chatInput:focus {
    border-color: #f43f5e;
}

.tts-toggle-btn {
    background: #232730;
    border: 1px solid #333845;
    color: #e5e7eb;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    padding: 0;
    box-sizing: border-box;
}

.tts-toggle-btn.active {
    background: rgba(244, 63, 94, 0.15);
    border: 1.5px solid #f43f5e;
    color: #fb7185;
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.3);
}

.tts-toggle-btn.muted {
    background: #181a1f;
    border: 1px solid #282d38;
    color: #6b7280;
    opacity: 0.65;
}

.tts-toggle-btn:active {
    transform: scale(0.92);
}

.send-btn {
    background: #f43f5e !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
    font-size: 1.1rem;
}

.send-btn:active {
    background: #e11d48 !important;
    transform: scale(0.95);
}
