body { background-color: #f1f5f9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 0.95rem; }
.container-fluid { max-width: 1400px; }

.compact-card { background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; padding: 12px 16px; margin-bottom: 12px; }
.word-main { font-size: 2.8rem; font-weight: 700; color: #0f172a; line-height: 1; }

.pinyin-badge { font-size: 1rem; background-color: #e0f2fe; color: #0369a1; padding: 4px 12px; border-radius: 20px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.pinyin-badge:hover { background-color: #bae6fd; }

.hanvi-text { font-size: 1.1rem; font-weight: 600; color: #059669; }
.source-tag-dim { opacity: 0.55; font-size: 0.8rem; font-weight: normal; margin-left: 6px; }

/* Ô chữ mễ chính */
.mi-grid-cell { 
	position: relative; 
	width: 75px; 
	height: 75px; 
	border: 1px solid #cbd5e1; 
	border-radius: 4px; 
	background-color: #fff; 
	background-image: 
		linear-gradient(to right, transparent 49%, #e2e8f0 49%, #e2e8f0 51%, transparent 51%),
		linear-gradient(to bottom, transparent 49%, #e2e8f0 49%, #e2e8f0 51%, transparent 51%),
		linear-gradient(45deg, transparent 49%, #f1f5f9 49%, #f1f5f9 51%, transparent 51%),
		linear-gradient(-45deg, transparent 49%, #f1f5f9 49%, #f1f5f9 51%, transparent 51%);
	cursor: pointer;
	transition: all 0.15s ease-in-out;
}
.mi-grid-cell:hover, .mi-grid-cell.active-char {
	border-color: #0284c7;
	box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

/* Khung chứa cả ô chữ mễ nét đứt + Thanh nhãn số thứ tự nét tách biệt hẳn */
.stroke-step-wrapper {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	border: 1px dashed #cbd5e1;
	border-radius: 6px;
	background-color: #fff;
	overflow: hidden;
}

.stroke-step-box {
	position: relative;
	width: 60px;
	height: 60px;
	background-image: 
		linear-gradient(to right, transparent 49%, #f1f5f9 49%, #f1f5f9 51%, transparent 51%),
		linear-gradient(to bottom, transparent 49%, #f1f5f9 49%, #f1f5f9 51%, transparent 51%);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Thanh chứa con số index nét nằm tách biệt phía dưới */
.stroke-step-footer {
	width: 100%;
	background-color: #f8fafc;
	border-top: 1px dashed #cbd5e1;
	text-align: center;
	font-size: 0.7rem;
	color: #475569;
	font-weight: 700;
	padding: 1px 0;
	line-height: 1.2;
}

.history-tag { display: inline-block; background: #e2e8f0; color: #334155; padding: 2px 10px; border-radius: 12px; font-size: 0.85rem; text-decoration: none; margin-right: 4px; margin-bottom: 4px; }
.history-tag:hover { background: #cbd5e1; color: #0f172a; }

.source-item { font-size: 0.85rem; padding: 8px 10px; border-radius: 6px; background-color: #f8fafc; border: 1px solid #e2e8f0; }
.source-extra { background-color: #fff; border-radius: 4px; border: 1px dashed #cbd5e1; padding: 6px 8px; margin-top: 6px; font-size: 0.8rem; color: #475569; }

.char-tab-btn { padding: 3px 10px; font-size: 0.85rem; border-radius: 15px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; }
.char-tab-btn.active { background: #0284c7; color: #fff; border-color: #0284c7; }

.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }

/* Style cho khối thông tin bổ sung từ từ điển chuyên sâu */
.extra-dict-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #0ea5e9;
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 12px;
	font-size: 0.9rem;
}

.char-breakdown-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 8px 12px;
	margin-bottom: 6px;
}
/* CSS bổ sung cho module giới thiệu  */

    .intro-module {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    .intro-icon-wrapper {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fb 100%);
        border-radius: 50%;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .feature-card {
        background: #f8fafc;
        border: 1px solid #e9edf4;
        transition: all 0.25s ease;
    }
    .feature-card:hover {
        background: #ffffff;
        border-color: #c7d2e9;
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    .feature-icon {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .guide-box {
        border: 1px solid #e9edf4;
    }
    .hover-shadow {
        transition: all 0.2s ease;
    }
    .hover-shadow:hover {
        background: #f0f5ff !important;
        border-color: #b3c9f0 !important;
        box-shadow: 0 2px 8px rgba(13, 110, 253, 0.08);
    }
    .nav-tabs .nav-link {
        color: #495057;
        border: none;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        padding: 0.6rem 0.8rem;
        font-weight: 500;
    }
    .nav-tabs .nav-link:hover {
        border-color: #e9edf4 #e9edf4 transparent;
        background-color: #f8fafc;
    }
    .nav-tabs .nav-link.active {
        color: #0d6efd;
        background-color: transparent;
        border-bottom: 3px solid #0d6efd;
    }
    .nav-tabs .nav-link i {
        margin-right: 4px;
    }
/*Hết module giới thiệu*/