/* Voice Tutor floating widget */
#voice-tutor-widget {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#voice-tutor-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2f6fed;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(47, 111, 237, 0.22);
    transition: background 0.2s ease, transform 0.2s ease;
}

#voice-tutor-trigger:hover {
    background: #1f5ad0;
    transform: translateY(-1px);
}

.voice-tutor-icon {
    font-size: 16px;
    line-height: 1;
}

.voice-tutor-text {
    white-space: nowrap;
}

#voice-tutor-panel {
    width: 360px;
    margin-top: 12px;
    background: #ffffff;
    border: 1px solid #d9e2f1;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(17, 38, 79, 0.16);
    overflow: hidden;
}

.voice-tutor-hidden {
    display: none;
}

.voice-tutor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fbff;
    border-bottom: 1px solid #dbe7f5;
}

.voice-tutor-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #16325c;
}

.voice-tutor-title span {
    font-size: 13px;
    color: #5c6f8f;
}

.voice-tutor-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-tutor-icon-btn {
    background: transparent;
    border: none;
    color: #4b5b76;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
}

.voice-tutor-icon-btn:hover {
    color: #16325c;
}

.voice-tutor-body {
    padding: 16px;
    background: #fcfdff;
}

.voice-tutor-response {
    max-height: 260px;
    min-height: 120px;
    overflow-y: auto;
    padding: 12px;
    margin-bottom: 12px;
    background: #f8fbff;
    border: 1px solid #dbe7f5;
    border-radius: 12px;
}

.voice-tutor-bubble {
    padding: 10px 12px;
    border-radius: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.voice-tutor-bubble.assistant {
    background: #f6fff8;
    border: 1px solid #cfe9d6;
    color: #1f2d3d;
}

.voice-tutor-bubble.user {
    background: #eef4ff;
    border: 1px solid #cdddff;
    color: #1f2d3d;
}

.voice-tutor-input {
    width: 100%;
    min-height: 90px;
    padding: 12px 14px;
    border: 1px solid #cfd9e6;
    border-radius: 10px;
    resize: vertical;
    font: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.voice-tutor-input:focus {
    outline: none;
    border-color: #4c84ff;
    box-shadow: 0 0 0 3px rgba(76, 132, 255, 0.15);
}

.voice-tutor-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.voice-tutor-primary-btn {
    background: #2f6fed;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease;
}

.voice-tutor-primary-btn:hover {
    background: #1f5ad0;
}

.voice-tutor-secondary-btn {
    background: #ffffff;
    color: #2f6fed;
    border: 1px solid #bcd0f7;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.voice-tutor-secondary-btn:hover {
    background: #f3f7ff;
    border-color: #2f6fed;
}

@media (max-width: 900px) {
    #voice-tutor-widget {
        top: auto;
        bottom: 20px;
        right: 16px;
    }

    #voice-tutor-panel {
        width: min(92vw, 360px);
    }

    .voice-tutor-text {
        display: none;
    }
}
.voice-tutor-quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.voice-tutor-quick-actions .voice-tutor-secondary-btn {
    padding: 8px 14px;
    font-size: 14px;
}