/* 调查问卷插件样式 */

/* 问卷卡片 */
.survey-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.survey-card.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08) !important;
    transform: translateY(-2px);
}

/* 问卷描述截断 */
.survey-brief {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 题目编辑器 */
.question-editor {
    background: #f8f9fa;
    transition: background 0.2s;
}
.question-editor:hover {
    background: #f0f1f3;
}
.question-number {
    font-weight: 700;
    color: #495057;
    min-width: 25px;
}

/* 评分星星 */
.rating-stars {
    display: flex;
    gap: 4px;
}
.rating-star {
    cursor: pointer;
    font-size: 1.5rem;
    color: #dee2e6;
    transition: color 0.15s, transform 0.15s;
}
.rating-star:hover,
.rating-star:hover ~ .rating-star {
    color: #ffc107;
}
.rating-star .ti-star-filled {
    color: #ffc107;
}
.rating-star:hover {
    transform: scale(1.2);
}

/* 验证码图片 */
.captcha-img {
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* 已填写标记 */
.badge-survey-done {
    font-size: 0.72rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .survey-card .card-body {
        padding: 0.75rem;
    }
    .question-editor .d-flex {
        flex-wrap: wrap;
    }
    .question-editor .form-control-sm {
        max-width: 100% !important;
    }
}

/* 题目类型拖拽面板 */
.survey-type-palette .btn {
    cursor: grab;
}
.survey-type-palette .btn:active {
    cursor: grabbing;
    transform: scale(0.96);
}

/* 题目拖拽排序 */
.drag-handle {
    cursor: grab;
    user-select: none;
    touch-action: none;
}
.drag-handle:active {
    cursor: grabbing;
}
.question-editor.dragging {
    opacity: 0.45;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.4);
}
#questionsContainer.drop-active {
    outline: 2px dashed #0d6efd;
    outline-offset: 4px;
    background: #f8fbff;
    border-radius: 6px;
}