/**
 * 诊疗主诉编辑器组件样式
 * @version 1.0.0
 * @author AI Assistant
 * @date 2025-10-20
 */

/* 主诉编辑器分隔线 */
.chief-complaint-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
    margin: 24px 0;
}

/* 快捷模板区域 */
.quick-templates-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

/* 快捷模板头部 */
.quick-templates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.quick-templates-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* 快捷模板展开/收起按钮 */
.quick-templates-toggle {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.quick-templates-toggle:hover {
    background: #e5e7eb;
    color: #374151;
}

/* 快捷模板内容区 */
.quick-templates-content {
    display: block;
    transition: all 0.3s ease-out;
    overflow: hidden;
}

.quick-templates-content.collapsed {
    display: none;
}

/* 快捷模板卡片容器 */
.quick-template-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .quick-template-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
    }
}

/* 快捷模板卡片 */
.quick-template-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    min-height: 120px;
    justify-content: center;
}

.quick-template-card:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 
                0 2px 4px -1px rgba(59, 130, 246, 0.06);
}

.quick-template-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(59, 130, 246, 0.05);
}

/* 模板图标 */
.template-icon {
    font-size: 32px;
    line-height: 1;
}

/* 模板名称 */
.template-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

/* 模板提示 */
.template-hint {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
}

/* 移动端优化 */
@media (max-width: 640px) {
    .quick-template-card {
        padding: 12px;
        min-height: 100px;
    }
    
    .template-icon {
        font-size: 24px;
    }
    
    .template-name {
        font-size: 13px;
    }
    
    .template-hint {
        font-size: 11px;
    }
}

/* 只读模式样式 */
#chiefComplaintEditorModal-input[readonly] {
    background-color: #f3f4f6;
    cursor: not-allowed;
    color: #6b7280;
}

/* 字数统计样式 */
#chiefComplaintEditorModal-count {
    font-weight: 500;
}

#chiefComplaintEditorModal-count.text-red-500 {
    color: #ef4444;
    font-weight: 600;
}

