/* CCM 中醫診斷系統样式 */

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

/* 導航栏样式 */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-brand i {
    color: #ffc107;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.75rem 0.75rem 0 0 !important;
    font-weight: 600;
}

/* 按钮样式 */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

/* 表单样式 */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 表格样式 */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 徽章样式 */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

/* 页脚样式 */
.footer {
    margin-top: auto;
    padding: 1rem 0;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* 響應式設计 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .table-responsive {
        border-radius: 0.5rem;
    }
}

/* 加載狀態 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 診斷页面特殊样式 */
.diagnose-form .card {
    margin-bottom: 1.5rem;
}

.symptom-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.symptom-item:hover {
    background-color: #e9ecef;
}

/* 成功消息样式 */
.alert-success {
    border-color: #198754;
    background-color: #d1edff;
    color: #0c63e4;
}

/* 錯误消息样式 */
.alert-danger {
    border-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

/* 患者列表样式 */
.patient-card {
    transition: transform 0.2s ease-in-out;
}

.patient-card:hover {
    transform: translateY(-2px);
}

/* 智能診斷按钮样式 */
.btn-ai-diagnose {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-ai-diagnose:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-ai-diagnose:active {
    transform: translateY(0);
}

/* 診斷结果样式 */
.diagnosis-result {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin: 1rem 0;
}

.diagnosis-result h4 {
    color: white;
    margin-bottom: 1rem;
}

.diagnosis-result .badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* 打印样式 */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }

    body {
        background-color: white !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}