/**
 * Flashcard Sets Catalog Styling (assets/css/flashcard.css)
 * Thiết kế chuẩn 100% theo Mockup Hình 1 & Hình 2 (Typography to rõ, sắc nét, đồng bộ hệ thống)
 */

/* ==========================================================================
   1. PAGE WRAPPER & CORE LAYOUT (Đồng bộ chuẩn 1200px với Vocabulary)
   ========================================================================== */
.flashcard-page-wrapper {
    background-color: #f8fafc;
    min-height: calc(100vh - 180px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 80px 20px;
    box-sizing: border-box;
    font-family: var(--font-heading), 'Pretendard', sans-serif;
    width: 100%;
    min-width: 0;
}

.flashcard-layout-container {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 20px;
    align-items: flex-start;
    box-sizing: border-box;
    min-width: 0;
}

/* ==========================================================================
   2. LEFT SIDEBAR: LOẠI TỪ & 20 CHỦ ĐỀ (ĐỒNG BỘ 100% VỚI VOCABULARY SIDEBAR)
   ========================================================================== */
.flashcard-sidebar-col,
.vocabulary-sidebar-col {
    position: sticky;
    top: 85px;
    z-index: 20;
    align-self: flex-start;
    min-width: 0;
}

.vocabulary-sidebar-card {
    width: 215px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}

/* Khối từng loại từ (명사, 동사, 형용사...) */
.vocab-pos-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vocab-pos-card.is-active-pos {
    border: 1.5px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.vocab-pos-header-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
    text-align: left;
    box-sizing: border-box;
    text-decoration: none;
}

.vocab-pos-header-btn:hover {
    background: #f8fafc;
}

.vocab-pos-link-btn {
    text-decoration: none;
    display: flex;
}

.pos-header-left {
    display: flex;
    align-items: center;
    gap: 7px;
}

.vocab-pos-flashcard-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.pos-title-kr {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.2px;
}

.vocab-pos-card.is-active-pos .pos-title-kr {
    color: #1d4ed8;
}

.pos-title-vn {
    font-family: var(--font-vietnamese), 'Be Vietnam Pro', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
}

.vocab-pos-card.is-active-pos .pos-title-vn {
    color: #2563eb;
}

.pos-header-right {
    display: flex;
    align-items: center;
    color: #94a3b8;
}

.pos-chevron-icon {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.vocab-pos-card.is-expanded .pos-chevron-icon {
    transform: rotate(180deg);
    color: #2563eb;
}

/* Danh sách 20 nhóm chủ đề bên trong Danh từ / Động từ / Tính từ (Hiệu ứng mở/cuộn êm mượt) */
.vocab-pos-body-collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: none;
}

.vocab-pos-card.is-expanded .vocab-pos-body-collapse {
    grid-template-rows: 1fr;
}

.vocab-pos-body-inner {
    overflow: hidden;
    min-height: 0;
    padding: 0 4px 0 6px;
    transition: padding 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.vocab-pos-card.is-expanded .vocab-pos-body-inner {
    padding: 6px 4px 6px 6px;
    max-height: 185px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.vocab-pos-body-inner::-webkit-scrollbar {
    width: 4px;
}

.vocab-pos-body-inner::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.vocab-main-cats-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vocab-cat-nav-item {
    width: 100%;
}

.vocab-cat-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.vocab-cat-nav-link:hover {
    background: #f1f5f9;
}

.cat-num {
    font-size: 13.5px;
    color: #94a3b8;
    width: 22px;
    flex-shrink: 0;
    font-weight: 600;
}

.cat-name-kr {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    letter-spacing: -0.2px;
}

.vocab-cat-nav-item.is-active .cat-num {
    color: #2563eb;
    font-weight: 800;
}

.vocab-cat-nav-item.is-active .cat-name-kr {
    color: #2563eb;
    font-weight: 800;
}

.vocab-cat-nav-item.is-active .vocab-cat-nav-link {
    background: transparent;
}

.vocab-pos-empty-hint {
    padding: 8px 10px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

/* ==========================================================================
   3. RIGHT MAIN CONTENT: BANNER (MOCKUP HÌNH 1 TOP)
   ========================================================================== */
.flashcard-main-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flashcard-catalog-view-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.vocabulary-topic-banner-card,
.flashcard-topic-banner-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.vocab-banner-inner,
.flashcard-banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.vocab-banner-media,
.flashcard-banner-media {
    width: 185px;
    height: 140px;
    border-radius: 0;
    overflow: visible;
    flex-shrink: 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vocab-banner-thumb-img,
.flashcard-banner-thumb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
}

.vocab-banner-content,
.flashcard-banner-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.vocab-banner-title,
.flashcard-banner-title-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    flex-wrap: wrap;
}

.banner-title-kr,
.title-kr-heading {
    font-size: 26px;
    font-weight: 900;
    color: #000000;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.banner-title-vn,
.title-vn-badge {
    font-family: var(--font-vietnamese), 'Be Vietnam Pro', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: -0.2px;
}

.vocab-banner-desc,
.flashcard-banner-desc-text {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    line-height: 1.5;
    margin: 2px 0 6px 0;
}

.vocab-banner-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.vocab-banner-stats-row,
.flashcard-banner-stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vocab-stat-pill,
.flashcard-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #334155;
    font-weight: 600;
}

.vocab-stat-pill svg,
.flashcard-stat-pill svg {
    color: #2563eb;
}

.flashcard-stat-pill svg {
    color: #2563eb;
}

/* ==========================================================================
   4. FILTER BAR: POS TABS & SEARCH (MOCKUP HÌNH 1 MIDDLE)
   ========================================================================== */
.flashcard-filter-bar {
    width: 100%;
}

.flashcard-filter-controls-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.flashcard-filter-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    padding: 4px;
    border-radius: 12px;
}

.btn-filter-pill {
    padding: 9px 20px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-filter-pill:hover {
    background: #f8fafc;
    color: #0f172a;
}

.btn-filter-pill.is-active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.flashcard-search-box-wrap {
    flex: 1;
    max-width: 300px;
    min-width: 220px;
}

.flashcard-search-input-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.flashcard-search-field {
    width: 100%;
    padding: 11px 42px 11px 16px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
}

.flashcard-search-field:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.flashcard-search-icon-btn {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.btn-clear-search {
    position: absolute;
    right: 36px;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear-search:hover {
    color: #0f172a;
}

/* ==========================================================================
   5. GRID 43 CATEGORY CARDS (ĐỒNG BỘ CHIỀU CAO & CHIỀU RỘNG TUYỆT ĐỐI)
   ========================================================================== */
.flashcard-grid-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    align-items: stretch;
}

.flashcard-category-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    position: relative;
    user-select: auto;
    height: 100%;
}

.flashcard-category-card:hover {
    transform: translateY(-4px);
    border-color: #60a5fa;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

.flashcard-category-card:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Cố định kích thước khung ảnh - To rõ, đầy đặn, không có shadow */
.fc-card-media-box {
    width: 100%;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.fc-card-thumb-img {
    max-height: 120px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
    filter: none;
}

.flashcard-category-card:hover .fc-card-thumb-img {
    transform: scale(1.06);
}

/* Khối text: Số thứ tự tách biệt bên trái, 3 mục nội dung thẳng hàng bên phải */
.fc-card-info-box {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}

.fc-card-seq {
    font-size: 15.5px;
    font-weight: 800;
    color: #94a3b8;
    line-height: 1.3;
    flex-shrink: 0;
    margin-top: 1px;
}

.fc-card-content-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fc-card-title-kr {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.fc-card-title-vn {
    font-family: var(--font-vietnamese), 'Be Vietnam Pro', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.fc-card-word-count {
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.3;
    margin-top: 2px;
}

/* Empty State */
.flashcard-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    text-align: center;
}

.empty-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.empty-title-text {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.empty-desc-text {
    font-size: 14.5px;
    color: #64748b;
    margin: 0 0 18px 0;
}

.btn-empty-reset-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* ==========================================================================
   5.1. NÚT MỞ RỘNG / THU GỌN LƯỚI CARD (ĐỒNG BỘ 100% VỚI COURSES/NGU-PHAP)
   ========================================================================== */
.flashcard-expand-toggle-box {
    display: flex;
    justify-content: center;
    padding: 24px 0 10px 0;
    width: 100%;
}

.btn-flashcard-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 28px;
    font-family: var(--font-heading), 'Pretendard', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.btn-flashcard-expand:hover {
    border-color: #cbd5e1;
    color: #1e293b;
    background: #f8fafc;
}

/* ==========================================================================
   6. SETUP STUDY VIEW TRỰC TIẾP TRÊN PAGE (MOCKUP HÌNH 2 - KHÔNG DÙNG MODAL)
   ========================================================================== */
.flashcard-setup-page-view {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInSetupView 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInSetupView {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Khung Card Trắng Thiết Lập */
.fc-setup-white-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.fc-setup-card-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

.fc-setup-media-box {
    width: 125px;
    height: 105px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-setup-thumb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
}

.fc-setup-content-box {
    flex: 1;
    min-width: 0;
}

.fc-setup-title-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.fc-setup-seq {
    font-size: 22px;
    font-weight: 800;
    color: #64748b;
}

.fc-setup-title-kr {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.fc-setup-title-vn {
    font-family: var(--font-vietnamese), 'Be Vietnam Pro', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #2563eb;
}

.fc-setup-guide-text {
    font-size: 14.5px;
    color: #0f172a;
    font-weight: 500;
    margin: 0 0 16px 0;
}

/* Controls Row: 3 Dropdowns */
.fc-setup-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fc-setup-control-group {
    flex: 1;
    min-width: 0;
}

.fc-custom-select-wrap {
    position: relative;
    width: 100%;
}

.fc-custom-select {
    width: 100%;
    padding: 11px 34px 11px 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.15s ease;
}

.fc-custom-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.fc-select-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

/* Custom Dropdown UI (Chuẩn Modern Component, Không dùng select native) */
.fc-custom-dropdown {
    position: relative;
    width: 100%;
}

.fc-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10.5px 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    text-align: left;
    white-space: nowrap;
}

.fc-dropdown-trigger:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.fc-custom-dropdown.is-open .fc-dropdown-trigger,
.fc-dropdown-trigger:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.fc-dropdown-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-dropdown-chevron {
    color: #64748b;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fc-custom-dropdown.is-open .fc-dropdown-chevron {
    transform: rotate(180deg);
    color: #2563eb;
}

.fc-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    min-width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 6px 12px -2px rgba(15, 23, 42, 0.06);
    padding: 6px;
    z-index: 150;
    display: none;
    flex-direction: column;
    gap: 2px;
    box-sizing: border-box;
    animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.fc-dropdown-menu::-webkit-scrollbar {
    width: 5px;
}
.fc-dropdown-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.fc-custom-dropdown.is-open .fc-dropdown-menu {
    display: flex;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fc-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8.5px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.fc-dropdown-item:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.fc-dropdown-item.is-selected {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 800;
}

.fc-dropdown-item-check {
    width: 14px;
    height: 14px;
    color: #2563eb;
    margin-left: 6px;
    flex-shrink: 0;
    opacity: 0;
}

.fc-dropdown-item.is-selected .fc-dropdown-item-check {
    opacity: 1;
}

@media (max-width: 768px) {
    .fc-setup-controls-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc-dropdown-menu {
        max-height: 220px;
    }
}

/* Notice Box (Đồng bộ chuẩn 100% bên trong Card Header như Study) */
.fc-setup-notice-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e40af;
    box-sizing: border-box;
    width: 100%;
    animation: fadeInSetupView 0.2s ease;
}

.fc-setup-notice-box.is-warning {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.fc-setup-notice-box.is-warning svg {
    stroke: #b91c1c;
    flex-shrink: 0;
}

/* Khối 2 Nút Bấm bên dưới Card (Mockup Hình 2) */
.fc-setup-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.btn-fc-confirm {
    min-width: 165px;
    padding: 14px 50px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-fc-confirm:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-fc-confirm:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-fc-cancel {
    min-width: 165px;
    padding: 14px 50px;
    background: #ffffff;
    color: #334155;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-fc-cancel:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .flashcard-grid-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .flashcard-layout-container {
        grid-template-columns: 1fr;
    }

    .flashcard-sidebar-col {
        position: static;
        width: 100%;
    }

    .vocabulary-sidebar-card {
        width: 100%;
    }

    .flashcard-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flashcard-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .flashcard-banner-title-row {
        justify-content: center;
    }

    .flashcard-banner-stats-row {
        justify-content: center;
    }

    .flashcard-filter-controls-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .flashcard-search-box-wrap {
        max-width: 100%;
    }

    .fc-setup-white-card {
        padding: 20px;
    }

    .fc-setup-card-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .fc-setup-title-line {
        justify-content: center;
    }

    .fc-setup-controls-row {
        flex-direction: column;
    }

    .fc-setup-actions-row {
        flex-direction: column;
        width: 100%;
    }

    .btn-fc-confirm,
    .btn-fc-cancel {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .flashcard-grid-container {
        grid-template-columns: 1fr;
    }
}
