/* -------------------- Үндсэн өнгүүд -------------------- */
:root {
    /* Үндсэн өнгүүд */
    --primary-color: #6366f1;           /* Indigo-500 */
    --primary-dark: #4f46e5;            /* Indigo-600 */
    --primary-light: #a5b4fc;           /* Indigo-300 */
    --primary-bg-light: #eef2ff;        /* Indigo-50 */
    
    /* Туслах өнгүүд */
    --secondary-color: #f97316;         /* Orange-500 */
    --secondary-dark: #ea580c;          /* Orange-600 */
    --secondary-light: #fdba74;         /* Orange-300 */
    --secondary-bg-light: #fff7ed;      /* Orange-50 */
    
    /* Текстийн өнгө */
    --text-dark: #1e293b;               /* Slate-800 */
    --text-medium: #475569;             /* Slate-600 */
    --text-light: #94a3b8;              /* Slate-400 */
    
    /* Цагаан саарал өнгө */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    
    /* Анхааруулга өнгө */
    --success: #22c55e;                 /* Green-500 */
    --warning: #f97316;                 /* Orange-500 */
    --danger: #ef4444;                  /* Red-500 */
    --info: #3b82f6;                    /* Blue-500 */
}

/* Үндсэн контейнер */
.vocabulary-container {
    padding: 20px;
    background-color: var(--gray-50);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Нэг багц болгосон хайлт+категори хэсэг */
.vocabulary-header-section {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 15px;
    margin-bottom: 25px;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

/* Үгсийн сангийн категори хэсэг */
.category-tabs {
    margin-bottom: 15px;
}

.category-tab-item {
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    min-height: 25px; /* Өндрийг 50 хувь бууруулсан (50px -> 25px) */
}

.category-tab-item.active {
    background: linear-gradient(135deg, var(--primary-bg-light) 0%, var(--primary-light) 100%);
    border-left: 4px solid var(--primary-color);
    transform: translateY(-2px);
}

.category-tab-item.unlocked {
    cursor: pointer;
}

.category-tab-item.locked {
    cursor: pointer;
    background-color: var(--gray-100);
    opacity: 0.9;
}

.category-tab-item .category-name {
    font-size: 0.85rem;
    padding: 8px;
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.category-tab-item .category-link {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.category-tab-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.08);
}

.category-tab-item:hover .category-name {
    color: var(--primary-color);
}

.category-tab-item.locked .category-name {
    color: var(--text-light);
}

/* Түгжээний үндсэн тохиргоо - голд байрлуулах */
.lock-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    z-index: 10;
}

.lock-icon-overlay i {
    font-size: 18px;
    color: white;
    animation: pulse-lock 2s infinite;
}

@keyframes pulse-lock {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Хайлт болон шүүлтийн хэсэг */
.search-filter-container {
    margin-bottom: 12px;
    text-align: center;
}

.search-filter-container .form-control,
.search-filter-container .form-select {
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    padding: 5px 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    margin-bottom: 8px;
    height: 32px;
    font-size: 13px;
}

.search-filter-container .form-control:focus,
.search-filter-container .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.search-filter-container .input-group {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    overflow: hidden;
    font-size: 13px;
}

/* Эрэмбэлэх товчлуурууд */
.sort-buttons {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.sort-buttons .btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background-color: var(--white);
    color: var(--text-medium);
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sort-buttons .btn span {
    font-size: 10px;
    display: block;
    line-height: 1;
    margin-top: 1px;
}

.sort-buttons .btn i {
    font-size: 14px;
    margin: 0;
}

.sort-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(99, 102, 241, 0.12);
    color: var(--primary-color);
}

.sort-buttons .btn.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
    border-radius: 50%;
}

.sort-buttons .btn.btn-primary:hover {
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

/* Үгийн хэсгийн шүүлтүүр */
.part-of-speech-filter {
    margin-bottom: 15px;
}

.part-of-speech-filter .form-select {
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    padding: 5px 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    background-color: var(--white);
    height: 32px;
    font-size: 13px;
}

.part-of-speech-filter .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* Үгийн хэсэг бэйж */
.badge.bg-info {
    background-color: var(--primary-color) !important;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.badge.bg-info:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.search-filter-container .form-control,
.search-filter-container .btn-primary {
    font-size: 13px;
    line-height: 1.4;
    padding: 6px 12px;
    border: 1px solid var(--gray-200);
    margin: 0;
}

.search-filter-container .form-control {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.search-filter-container .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0 6px 6px 0;
    font-weight: 500;
    transition: all 0.25s ease;
}

.search-filter-container .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.search-filter-container .btn-outline-secondary {
    color: var(--text-light);
    border-color: var(--gray-300);
    border-radius: 6px;
    padding: 6px 12px;
    transition: all 0.25s ease;
    font-size: 13px;
}

.search-filter-container .btn-outline-secondary:hover {
    background-color: var(--gray-100);
    color: var(--text-dark);
    border-color: var(--gray-400);
}

/* Эрхтэй категориудын карт */
.available-categories {
    margin-top: 35px;
}

.available-categories h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-100);
    color: var(--text-dark);
    position: relative;
}

.available-categories h2:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.category-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.category-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    transition: height 0.3s ease;
}

.category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

.category-card:hover:before {
    height: 100%;
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    z-index: 1;
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-card:hover h3 {
    transform: translateX(8px);
    color: var(--text-dark);
}

.category-card .word-count {
    color: var(--text-light);
    font-size: 0.95rem;
    background: var(--gray-50);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.category-card:hover .word-count {
    background: var(--primary-bg-light);
    color: var(--primary-color);
}

/* Үгсийн карт хэсэг */
.vocabulary-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.vocabulary-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.vocabulary-card:hover {
    transform: translateY(-7px);
}

.vocabulary-card .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background-color: var(--white);
}

.vocabulary-card .card-header {
    background: linear-gradient(135deg, var(--primary-bg-light) 0%, var(--primary-bg-light) 100%);
    border-bottom: 1px solid var(--primary-bg-light);
    padding: 20px;
}

.vocabulary-card.highlight-card {
    animation: highlight-pulse 1.5s ease;
}

@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.chinese-word {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fe0000;
    transition: all 0.3s ease;
}

.vocabulary-card:hover .chinese-word {
    color: var(--primary-color);
}

.pinyin {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 5px;
}

.mongolian-word {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.vocabulary-card:hover .mongolian-word {
    color: var(--primary-color);
}

.vocabulary-card .card-body {
    padding: 25px;
}

.vocabulary-card .card-body h5 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.vocabulary-card .card-body h5:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 18px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 3px;
}

.explanation, .usage-example, .additional-examples, .image-content, .video-content {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.explanation p, .usage-example p {
    color: var(--text-dark);
    line-height: 1.7;
}

.list-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.list-group-item {
    border-left: none;
    border-right: none;
    padding: 15px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--gray-50);
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.chinese-example {
    font-weight: 500;
    color: var(--text-dark);
}

.mongolian-example {
    color: var(--text-dark);
}

.vocabulary-card .card-footer {
    background-color: var(--gray-50);
    padding: 15px 25px;
    border-top: 1px solid var(--gray-100);
}

.text-muted {
    color: var(--text-light) !important;
}

.badge {
    padding: 5px 10px;
    font-weight: 500;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.badge.bg-info {
    background-color: var(--info) !important;
    color: white;
}

/* Хуудаслалт */
.pagination {
    margin-top: 35px;
    margin-bottom: 20px;
}

.pagination .page-link {
    border: none;
    color: var(--text-dark);
    margin: 0 3px;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pagination .page-link:hover {
    background-color: var(--primary-bg-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(99, 102, 241, 0.1);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 10px rgba(99, 102, 241, 0.2);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-light);
    background-color: var(--gray-50);
}

/* Зураг томруулах хэсэг */
.image-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    animation: scaleIn 0.3s ease forwards;
}

@keyframes scaleIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.image-modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Товчлуурууд */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background-color: var(--gray-100);
    border-color: var(--gray-100);
    color: var(--text-light);
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--gray-300);
    border-color: var(--gray-300);
    color: var(--text-dark);
}

/* Alert хэсгүүд */
.alert {
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.alert-info {
    background-color: #e0f2fe;
    color: #0369a1;
    border-left: 5px solid var(--info);
}

.alert-warning {
    background-color: var(--secondary-bg-light);
    color: var(--secondary-dark);
    border-left: 5px solid var(--secondary-color);
}

.alert-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    border-left: 5px solid var(--danger);
}

.alert i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.alert .btn {
    margin-top: 10px;
    margin-right: 10px;
}

/* Эрхгүй категорид хандах мэдэгдлийн загвар */
.access-denied-alert {
    background-color: #f5f3ff; /* Lighter purple (violet-50) */
    border-left: 5px solid #8b5cf6; /* violet-500 */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.access-denied-icon {
    font-size: 2.2rem;
    color: #8b5cf6; /* violet-500 */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.access-denied-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.access-denied-text {
    color: var(--text-dark);
    font-size: 1.05rem;
}

.buy-access-btn {
    background-color: #8b5cf6; /* violet-500 */
    border-color: #8b5cf6; /* violet-500 */
    color: white;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

.buy-access-btn:hover {
    background-color: #7c3aed; /* violet-600 */
    border-color: #7c3aed; /* violet-600 */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

/* Категори ерөнхий мэдээллийн хэсэг */
.category-preview-box {
    background-color: var(--gray-50);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--gray-100);
}

.category-preview-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.category-preview-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.category-preview-text {
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* Дэлгэрэнгүй харах товчлуур */
.view-details-btn {
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.15);
}

.hide-details-btn {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Дэлгэрэнгүй хэсгийн анимэйшн */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-section.fadeInUp {
    animation: fadeInUp 0.4s ease forwards;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .category-tab-item {
        min-height: 22px; /* Өндрийг 50 хувь бууруулсан (45px -> 22px) */
    }
    
    .category-tab-item .category-name {
        font-size: 0.8rem;
        padding: 6px;
    }
    
    .chinese-word, .mongolian-word {
        font-size: 1.6rem;
    }
    
    .vocabulary-card .card-header .col-md-6:last-child {
        text-align: left !important;
        margin-top: 15px;
    }
    
    .vocabulary-card .card-body {
        padding: 20px;
    }
    
    .access-denied-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .access-denied-title {
        font-size: 1.2rem;
    }
    
    .access-denied-text {
        font-size: 0.95rem;
    }
    
    .buy-access-btn, 
    .btn-outline-primary {
        width: 100%;
        margin-top: 10px;
    }
    
    .search-filter-container .form-control,
    .search-filter-container .btn-primary,
    .search-filter-container .btn-outline-secondary {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .sort-buttons .btn {
        width: 28px;
        height: 28px;
    }
    
    .sort-buttons .btn i {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .vocabulary-container {
        padding: 15px;
    }
    
    .category-tab-item {
        min-height: 20px; /* Өндрийг 50 хувь бууруулсан (40px -> 20px) */
        margin-bottom: 5px;
    }
    
    .category-tab-item .category-name {
        font-size: 0.75rem;
        padding: 5px;
    }
    
    .vocabulary-card .card-header {
        padding: 15px;
    }
    
    .chinese-word, .mongolian-word {
        font-size: 1.4rem;
    }
    
    .pagination .page-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .search-filter-container .form-control,
    .search-filter-container .form-select {
        height: 30px;
        font-size: 12px;
    }
    
    .sort-buttons {
        gap: 4px;
    }
    
    .sort-buttons .btn {
        width: 26px;
        height: 26px;
    }
    
    .sort-buttons .btn i {
        font-size: 11px;
    }
    
    .sort-buttons .btn span {
        font-size: 9px;
    }
}


/* Хүснэгтийн загвар */
.vocabulary-table-container {
    margin-bottom: 30px;
    background-color: var(--white);
    border-radius: 0px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.vocabulary-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.vocabulary-table thead th {
    background-color: #fe0000 !important;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 15px;
    vertical-align: middle;
    border: none;
}

.vocabulary-table thead th:first-child {
    border-top-left-radius: 0px;
}

.vocabulary-table thead th:last-child {
    border-top-right-radius: 0px;
}

.vocabulary-table tbody tr {
    transition: all 0.3s ease;
}

.vocabulary-table tbody tr:hover {
    background-color: var(--primary-bg-light);
}

.vocabulary-table td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid var(--gray-100);
}

/* Үгсийн загвар */
.chinese-word-cell {
    font-size: 1.5rem;
    font-weight: 600;
    color: red;
}

.pinyin-cell {
    font-size: 1rem;
    color: var(--text-medium);
    font-style: italic;
}

.mongolian-word-cell {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Үгийн төрөл */
.badge.bg-info {
    background-color: var(--primary-color) !important;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Үйлдлийн товчлуурууд */
.view-details-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.2);
}

/* Дэлгэрэнгүй мэдээллийн мөр */
.details-row td {
    padding: 0;
}

.details-card {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: var(--primary-bg-light);
}

.details-card .card-body {
    padding: 20px;
}

.details-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    padding-left: 12px;
}

.details-card h5:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.details-card p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

.details-card .list-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.details-card .list-group-item {
    padding: 12px 15px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.details-card .list-group-item:hover {
    background-color: var(--gray-50);
}

.chinese-example {
    font-weight: 500;
    color: var(--text-dark);
}

.mongolian-example {
    color: var(--text-medium);
}

.hide-details-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.hide-details-btn:hover {
    background-color: var(--gray-300);
    color: var(--text-dark);
}

/* Респонсив загвар */
@media (max-width: 992px) {
    .vocabulary-table th, 
    .vocabulary-table td {
        padding: 12px 10px;
    }
    
    .chinese-word-cell {
        font-size: 1.3rem;
    }
    
    .pinyin-cell {
        font-size: 0.9rem;
    }
    
    .mongolian-word-cell {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .vocabulary-table {
        font-size: 0.9rem;
    }
    
    .chinese-word-cell {
        font-size: 1.2rem;
    }
    
    .pinyin-cell {
        font-size: 0.85rem;
    }
    
    .mongolian-word-cell {
        font-size: 1rem;
    }
    
    .vocabulary-table th, 
    .vocabulary-table td {
        padding: 10px 8px;
    }
    
    .view-details-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .vocabulary-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}