/* ============================================================
   Lexilet – Dashboard Styles: Decks & Navigation
   Part of the refactored 3.4.0.0 CSS module system.
   Requires: lexilet-dashboard-core.css
   ============================================================ */

/* -- Buttons ------------------------------------------------- */
.lexd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.lexd-btn:active {
    transform: scale(0.97);
}

.lexd-btn-study {
    background: #6c63ff;
    color: #fff !important;
    flex-shrink: 0;
}

.lexd-btn-study:hover {
    background: #5a52e0;
    color: #fff !important;
}

.lexd-btn-study .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.lexd-btn-manage {
    background: #fff;
    color: #6c63ff;
    border: 1px solid #e0dff8;
    font-size: 0.82rem;
    padding: 8px 14px;
}

.lexd-btn-manage:hover {
    background: #f4f3ff;
    border-color: #6c63ff;
}

.lexd-btn-manage .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

.lexd-btn-add-folder,
.lexd-btn-add-deck,
.lexd-btn-add-card,
.lexd-btn-add-card-quick {
    background: #fff;
    color: #6c63ff;
    border: 1px solid #e0dff8;
    font-size: 0.82rem;
    padding: 8px 14px;
}

.lexd-btn-add-folder:hover,
.lexd-btn-add-deck:hover,
.lexd-btn-add-card:hover,
.lexd-btn-add-card-quick:hover {
    background: #f4f3ff;
    border-color: #6c63ff;
}

.lexd-btn-add-folder .dashicons,
.lexd-btn-add-deck .dashicons,
.lexd-btn-add-card .dashicons,
.lexd-btn-add-card-quick .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* -- Info button (circle) ------------------------------------ */
.lexd-btn-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    flex-shrink: 0;
}

.lexd-btn-info:hover {
    border-color: #6c63ff;
    background: #f4f3ff;
}

.lexd-btn-info:active {
    transform: scale(0.95);
}

.lexd-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e0dff8;
    color: #6c63ff;
    font-weight: 700;
    font-size: 14px;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
}

/* -- Sidebar Info nav icon ----------------------------------- */
.lexd-info-icon-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0dff8;
    color: #6c63ff;
    font-weight: 700;
    font-size: 12px;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    flex-shrink: 0;
}

.lexd-nav-info {
    opacity: 0.75;
    transition: opacity 0.15s;
}

.lexd-nav-info:hover {
    opacity: 1;
}

/* -- Info modal ---------------------------------------------- */
.lexd-modal-info {
    z-index: 10010;
}

.lexd-modal-inner-info {
    max-width: min(600px, 95vw) !important;
    width: 95vw !important;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.lexd-modal-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.lexd-modal-info-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.lexd-modal-info-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}

.lexd-modal-info-close:hover {
    color: #333;
}

.lexd-modal-info-body {
    padding: 14px 20px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #444;
}

.lexd-modal-info-body h1,
.lexd-modal-info-body h2,
.lexd-modal-info-body h3,
.lexd-modal-info-body h4 {
    color: #333;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

.lexd-modal-info-body h1:first-child,
.lexd-modal-info-body h2:first-child,
.lexd-modal-info-body h3:first-child {
    margin-top: 0;
}

.lexd-modal-info-body p {
    margin-bottom: 0.8em;
}

.lexd-modal-info-body ul,
.lexd-modal-info-body ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.lexd-modal-info-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* -- Welcome modal (new users) ------------------------------- */
.lexd-modal-welcome {
    z-index: 100100 !important;
}

.lexd-modal-welcome .lexd-welcome-nav button,
.lexd-modal-welcome .lexd-welcome-dot,
.lexd-modal-welcome .lexd-btn,
.lexd-modal-welcome .lexd-welcome-delete-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10;
}

.lexd-modal-inner-welcome {
    max-width: 420px;
    text-align: center;
    padding: 32px 28px 24px;
}

.lexd-welcome-icon {
    margin-bottom: 16px;
}

.lexd-welcome-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #6c63ff;
}

.lexd-welcome-title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: #333;
    text-align: center;
    justify-content: center;
}

.lexd-welcome-text {
    margin: 0 0 24px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.lexd-modal-welcome .lexd-modal-actions {
    justify-content: center;
}

.lexd-btn-cancel {
    background: #f0f0f0;
    color: #555;
}

.lexd-btn-cancel:hover {
    background: #e0e0e0;
    color: #333;
}

.lexd-btn-confirm {
    background: #6c63ff;
    color: #fff;
}

.lexd-btn-confirm:hover {
    background: #5a52e0;
    color: #fff;
}

.lexd-btn-back-to-decks {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    padding: 8px 14px;
}

.lexd-btn-back-to-decks:hover {
    background: #f0f0f0;
    border-color: #999;
    color: #333;
}

/* -- Search bar ---------------------------------------------- */
.lexd-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.lexd-search-bar .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #aaa;
    flex-shrink: 0;
}

.lexd-search-input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    width: 100%;
    background: transparent;
    font-family: inherit;
}

.lexd-search-input::placeholder {
    color: #bbb;
}

/* -- Search bar with sort (Decks) ---------------------------- */
.lexd-search-bar-with-sort {
    flex-wrap: wrap;
}

.lexd-search-input-wrap {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.lexd-search-input-wrap .dashicons {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.lexd-search-input-wrap .lexd-search-input {
    width: 100%;
    padding-left: 35px;
    margin: 0;
}

.lexd-sort-select {
    min-width: 180px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: #444;
    background-color: #fff;
    cursor: pointer;
}

@media (max-width: 600px) {
    .lexd-search-input-wrap {
        min-width: 100%;
    }

    .lexd-sort-select {
        min-width: 100%;
    }
}

/* -- Dictionary list ----------------------------------------- */
.lexd-dict-hint {
    color: #aaa;
    font-size: 0.9rem;
    text-align: center;
    padding: 24px 0;
}

.lexd-dict-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.15s, opacity 0.3s, transform 0.3s;
    min-height: 85px;
}

.lexd-dict-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* -- Szótárfüzet 2-oszlopos layout -------------------------
   .lexd-dict-item
     .lexd-dict-main
       .lexd-dict-row         (kétoszlopos sor)
         .lexd-dict-col-term  (bal: kifejezés)
         .lexd-dict-col-def   (jobb: jelentés + példa)
       .lexd-dict-meta        (pakli link + pill-ek)
     .lexd-dict-actions
   --------------------------------------------------------- */
.lexd-dict-main {
    flex: 1;
    min-width: 0;
}

.lexd-dict-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: baseline;
    border-bottom: 1px solid #f3f3f7;
    padding-bottom: 6px;
    margin-bottom: 5px;
}

.lexd-dict-col-term {
    padding-right: 16px;
    border-right: 2px solid #eeecff;
}

.lexd-dict-col-def {
    padding-left: 16px;
}

.lexd-dict-term-text {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

.lexd-dict-def-text {
    color: #444;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

.lexd-dict-ex-text {
    color: #999;
    font-size: 0.78rem;
    font-style: italic;
    display: block;
    margin-top: 2px;
}

.lexd-dict-exm-text {
    color: #888;
    font-size: 0.78rem;
    font-style: normal;
    display: block;
    margin-top: 2px;
}

.lexd-dict-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* legacy selectors kept for safety */
.lexd-dict-content {
    flex: 1;
    min-width: 0;
}

.lexd-dict-term {
    font-weight: 700;
    color: #222;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* -- Mastery badge ------------------------------------------- */
.lexd-mastery-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.lexd-mastery-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #ccc;
}

.lexd-mastery-badge.is-mastered .dashicons {
    color: #f1c40f;
}

.lexd-ct-term .lexd-mastery-badge {
    margin-right: 4px;
}

/* legacy – kept for backward compat */
.lexd-dict-def {
    color: #666;
    font-size: 0.9rem;
    margin-top: 2px;
}

.lexd-dict-ex {
    color: #999;
    font-size: 0.82rem;
    font-style: italic;
    margin-top: 2px;
}

.lexd-dict-deck-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 6px;
    background: #f7f7fa;
    padding: 2px 8px;
    border-radius: 6px;
}

.lexd-dict-deck-label .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.lexd-dict-deck-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #6c63ff;
    margin-top: 6px;
    background: #f7f7fa;
    padding: 2px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    font-weight: 600;
    cursor: pointer;
}

.lexd-dict-deck-link:hover {
    background: #eeedff;
    color: #5a52e0;
}

.lexd-dict-deck-link .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.lexd-dict-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 230px;
}

.lexd-dict-actions button,
.lexd-dict-edit,
.lexd-dict-del {
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px 6px;
    cursor: pointer;
    color: #888;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1;
}

.lexd-dict-actions button:hover,
.lexd-dict-edit:hover {
    color: #333;
    border-color: #999;
    background: #f7f7fa;
}

.lexd-dict-del:hover {
    color: #c0392b;
    border-color: #c0392b;
    background: #fef5f5;
}

.lexd-dict-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* -- Inline edit form --------------------------------------- */
.lexd-edit-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
    width: 100%;
}

.lexd-edit-input {
    font-family: inherit;
    font-size: 0.9rem;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
    background: #fafafa;
}

.lexd-edit-input:focus {
    border-color: #6c63ff;
    background: #fff;
}

select.lexd-edit-input {
    cursor: pointer;
}

.lexd-edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 4px;
}

.lexd-edit-actions .lexd-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
}

/* -- Szótár – inline szerkesztési állapot (v3.4.0.8) --------------- */
.lexd-dict-item--editing {
    background: #fafbff;
    box-shadow: 0 2px 12px rgba(108, 99, 255, 0.10);
}

.lexd-dict-item--editing .lexd-dict-col-term,
.lexd-dict-item--editing .lexd-dict-col-def {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.lexd-dict-item--editing .lexd-dict-meta {
    padding-top: 6px;
}

/* Mentés / Mégse gombok a szótár inline szerkesztőben (v3.6.4.4)
 * Szöveg közvetlenül a HTML-ben (.lexd-btn-label span), nem ::after pszeudóval.
 * !important a kulcstulajdonságokon – theme/WP reset nem tud felülírni. */
.lexd-dict-actions .lexd-dict-inline-save,
.lexd-dict-actions .lexd-dict-inline-cancel {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 34px !important;
    padding: 5px 12px !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    flex-shrink: 0;
    transition: opacity 0.15s, box-shadow 0.15s;
}

/* Mentés: zöld */
.lexd-dict-actions .lexd-dict-inline-save {
    color: #fff !important;
    background: #27ae60 !important;
    border: 1px solid #219a52 !important;
}
.lexd-dict-actions .lexd-dict-inline-save:hover {
    opacity: 0.88;
    box-shadow: 0 2px 6px rgba(39,174,96,0.35);
}

/* Mégse: semleges szürke */
.lexd-dict-actions .lexd-dict-inline-cancel {
    color: #444 !important;
    background: #f0f0f0 !important;
    border: 1px solid #d0d0d0 !important;
}
.lexd-dict-actions .lexd-dict-inline-cancel:hover {
    background: #e4e4e4 !important;
    border-color: #bbb !important;
}

.lexd-dict-actions .lexd-dict-inline-save .dashicons,
.lexd-dict-actions .lexd-dict-inline-cancel .dashicons {
    font-size: 17px;
    width: 17px;
    height: 17px;
    line-height: 17px;
    flex-shrink: 0;
}

/* Szövegfelirat span */
.lexd-dict-actions .lexd-btn-label {
    display: inline !important;
    font-size: 0.84rem;
    font-weight: 600;
    color: inherit;
    line-height: 1;
}

/* -- Deck card management panel ----------------------------- */
.lexd-deck-cards-panel {
    animation: lexd-fade 0.25s ease;
}

.lexd-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.lexd-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

/* Quick add card */
.lexd-quick-add {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.lexd-quick-add h3 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lexd-quick-add h3 .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #6c63ff;
}

.lexd-quick-add-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: end;
}

/* Megjegyzés textarea: teljes szélesség */
.lexd-quick-add-fields textarea.lexd-quick-input {
    grid-column: 1 / -1;
}

/* Ha az AI gomb nincs jelen, a Hozzáadás gomb jobb oldalt legyen */
.lexd-quick-add-fields .lexd-qa-save {
    grid-column: 2;
    justify-self: end;
}

/* Ha az AI gomb IS jelen van (JS szúrja be közvetlenül a save elé),
   mindkét gomb egy sorban marad a grid jobb felén, természetes sorrendben */
.lexd-quick-add-fields .lexd-ai-btn {
    grid-column: 1;
    justify-self: start;
}

.lexd-quick-input {
    font-family: inherit;
    font-size: 0.9rem;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.lexd-quick-input:focus {
    border-color: #6c63ff;
}

.lexd-qa-save .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Cards table */
.lexd-cards-table-wrap {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.lexd-cards-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
}

.lexd-cards-table thead th {
    background: #f7f8fa;
    padding: 6px 10px;
    text-align: left;
    font-weight: 700;
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #eaedf2;
}

.lexd-cards-table tbody td {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: middle;
}

.lexd-cards-table tbody tr:last-child td {
    border-bottom: none;
}

.lexd-cards-table tbody tr:hover {
    background: #fafaff;
}

.lexd-cards-table tbody tr.is-editing td {
    background: #fef9e7;
}

.lexd-ct-term {
    font-weight: 600;
    color: #222;
}

/* Red Zone: forrás pakli neve a kifejezés alatt (v3.5.2.0) */
.lexd-ct-source-deck {
    font-size: 0.78em;
    font-weight: 400;
    color: #e74c3c;
    margin-top: 3px;
    opacity: 0.85;
}

/* v3.6.6.5 – Közös thumbnail + hover előnézet (tanulói + tanári, pakli + szótár) */
.lex-thumb {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 8px;
    background: #f8f8f8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.lex-thumb:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Globális hover előnézet – JS pozícionálja a body-ra (v3.6.6.5) */
#lex-thumb-tooltip {
    display: none;
    position: fixed;
    max-width: 220px;
    max-height: 220px;
    width: auto;
    height: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 4px;
    z-index: 100000;
    pointer-events: none;
}

/* Mini ▶ play gombok a kártyalistában (v2.8.0) */
.lexd-ct-play-term,
.lexd-ct-play-ex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    vertical-align: middle;
    background: #f4f3ff;
    border: 1px solid #d0c9ff;
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 0.78rem;
    color: #6c63ff;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    user-select: none;
}

.lexd-ct-play-term .dashicons,
.lexd-ct-play-ex .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.lexd-ct-play-term:active,
.lexd-ct-play-ex:active {
    transform: scale(0.95);
}

.lexd-ct-play-term:hover,
.lexd-ct-play-ex:hover {
    background: #e0dff8;
    border-color: #6c63ff;
}

.lexd-ct-play-ex {
    display: inline-flex;
    margin: 2px 0;
    /* Távolság a gomb és a példamondat/fordítása között */
}

/* Kártyanézet: Példamondat ikon új sorba ugrása, flex box nélkül */
.lexd-ct-ex .lexd-ex-sentence,
.lexd-ct-ex .lexd-ex-meaning {
    display: block;
    width: 100%;
}

.lexd-ct-ex .lexd-ex-meaning {
    margin-bottom: 2px;
    /* Távolság a lejátszóikon előtt */
}

.lexd-ct-ex .lexd-ct-play-ex {
    display: inline-flex;
    /* Ne nyúljon szét az ikon teljes oszlopszélességűre */
}

/* Szótár nézet – lejátszó gombok (pill stílus, mint .lexilet-term-play a Kártyánézetben) */
.lexd-dict-play-term,
.lexd-dict-play-ex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    background: #f4f3ff;
    border: 1px solid #d0c9ff;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.72rem;
    line-height: 1;
    color: #6c63ff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    user-select: none;
    box-shadow: none;
}

.lexd-dict-play-term .dashicons,
.lexd-dict-play-ex .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.lexd-dict-play-term:active,
.lexd-dict-play-ex:active {
    transform: scale(0.95);
}

.lexd-dict-play-term {
    margin-left: 6px;
}

.lexd-dict-play-ex {
    margin-left: 5px;
}

.lexd-dict-play-term:hover,
.lexd-dict-play-ex:hover {
    background: #e0dff8;
    border-color: #6c63ff;
}

/* Hang-regenerálás gombok – közös alap (v3.6.6.6) */
.lexd-ct-regen-term,
.lexd-ct-regen-ex,
.lexd-dict-regen-term,
.lexd-dict-regen-ex {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 3px !important;
    background: transparent !important;
    border: 1px solid #90caf9 !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #1976d2 !important;
    cursor: pointer !important;
    transition: background 0.15s, border-color 0.15s !important;
    user-select: none;
    box-shadow: none !important;
    white-space: nowrap !important;
}

.lexd-ct-regen-term:hover,
.lexd-ct-regen-ex:hover,
.lexd-dict-regen-term:hover,
.lexd-dict-regen-ex:hover {
    background: #e3f2fd !important;
    border-color: #1976d2 !important;
}

.lexd-ct-regen-term:disabled,
.lexd-ct-regen-ex:disabled,
.lexd-dict-regen-term:disabled,
.lexd-dict-regen-ex:disabled {
    opacity: 0.55;
    cursor: default !important;
}

/* Inline kártyaszerkesztő – hang-gombok sor (v3.6.6.6) */
.lexd-ct-audio-row {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.lexd-ct-audio-row .lexd-ct-regen-term,
.lexd-ct-audio-row .lexd-ct-regen-ex {
    flex: 1;
    min-height: 28px !important;
}

.lexd-ct-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

/* Edit / Delete gombok (műveletek oszlop alapértelmezett) */
.lexd-ct-edit,
.lexd-ct-del {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    color: #888;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1;
}

.lexd-ct-edit:hover {
    color: #6c63ff;
    border-color: #6c63ff;
    background: #f7f5ff;
}

.lexd-ct-del:hover {
    color: #c0392b;
    border-color: #c0392b;
    background: #fef5f5;
}

.lexd-ct-edit .dashicons,
.lexd-ct-del .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Mentés / Mégse gombok wrapper – kártyatáblázat (v3.6.4.5) */
.lexd-ct-save-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

/* Mentés / Mégse gombok – kártyatáblázat inline szerkesztő (v3.6.4.5) */
.lexd-ct-save,
.lexd-ct-cancel {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 30px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex: 1;
    justify-content: center;
    transition: opacity 0.15s, box-shadow 0.15s;
}

.lexd-ct-save {
    color: #fff !important;
    background: #27ae60 !important;
    border: 1px solid #219a52 !important;
}
.lexd-ct-save:hover {
    opacity: 0.88;
    box-shadow: 0 2px 6px rgba(39,174,96,0.35);
}

.lexd-ct-cancel {
    color: #444 !important;
    background: #f0f0f0 !important;
    border: 1px solid #d0d0d0 !important;
}
.lexd-ct-cancel:hover {
    background: #e4e4e4 !important;
    border-color: #bbb !important;
}

.lexd-ct-save .dashicons,
.lexd-ct-cancel .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    flex-shrink: 0;
}

.lexd-ct-save .lexd-btn-label,
.lexd-ct-cancel .lexd-btn-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: inherit;
}

.lexd-ct-input {
    font-family: inherit;
    font-size: 0.88rem;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}

.lexd-ct-input:focus {
    border-color: #6c63ff;
}

.lexd-cards-empty {
    color: #aaa;
    font-size: 0.9rem;
    text-align: center;
    padding: 24px 0;
}

/* ============================================================
 *  Collapsible folder groups (v3.4.0.11)
 * ============================================================ */

/* Folder group card */
.lexd-folder-group {
    background: transparent;
    margin-bottom: 10px;
}

/* Override core header: add background, padding, pointer */
.lexd-folder-header {
    padding: 9px 14px;
    background: rgba(108, 99, 255, 0.06);
    cursor: pointer;
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 10px;
    margin: 0 0 6px !important;
    transition: background 0.15s;
    user-select: none;
}

.lexd-folder-header:hover {
    background: rgba(108, 99, 255, 0.11);
}

/* Toggle arrow icon */
.lexd-folder-toggle {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    color: #6c63ff;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* Deck count badge */
.lexd-folder-deck-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6c63ff;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 20px;
    padding: 1px 8px;
    flex-shrink: 0;
    margin-left: 2px;
}

/* Collapsible content area */
.lexd-folder-content {
    padding: 6px 0 2px;
}

/* Collapsed state: hide content, remove header bottom border */
.lexd-folder-group.is-collapsed .lexd-folder-content {
    display: none;
}

/* "Mappa nélkül" section – neutral color scheme */
.lexd-folder-group--no-folder .lexd-folder-header {
    background: #f7f7f7;
    border-color: #e0e0e0;
}

.lexd-folder-group--no-folder .lexd-folder-header:hover {
    background: #f0f0f0;
}

.lexd-folder-group--no-folder .lexd-folder-toggle {
    color: #999;
}

.lexd-folder-group--no-folder .lexd-folder-deck-count {
    color: #888;
    background: rgba(0,0,0,0.06);
}

/* Child folder groups (nested) */
.lexd-folder-group .lexd-folder-group {
    margin: 0 10px 8px;
    border-radius: 8px;
}

/* ============================================================
   v3.5.0.54 – Csoport pakli megnyitás (slide-in, csak olvasás)
   Ugyanaz a mechanizmus mint a Paklik tabnál (.lexd-decks-view-wrapper)
   ============================================================ */
.lexd-group-view-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.lexd-group-main-view,
.lexd-group-cards-panel {
    width: 100%;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lexd-group-view-wrapper.is-showing-cards .lexd-group-main-view,
.lexd-group-view-wrapper.is-showing-cards .lexd-group-cards-panel {
    transform: translateX(-100%);
}

/* Panel fejléc: háttér + elválasztó */
.lexd-group-cards-panel .lexd-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 0 14px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.lexd-group-cards-panel .lexd-group-panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Irány dropdown */
.lexd-group-panel-dir-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 180px;
    overflow: hidden;
}

.lexd-group-panel-dir-dropdown .lexd-panel-dir-option {
    display: block;
    padding: 10px 14px;
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
}

.lexd-group-panel-dir-dropdown .lexd-panel-dir-option:hover {
    background: #f4f3ff;
    color: #6c63ff;
}

/* =====================================================================
   Mobilos inline szerkesztő – mentés / mégse gombok (v3.6.4.4)
   Mobilon nagyobb érintési terület, teljes szélességű sáv.
   ===================================================================== */
@media (max-width: 600px) {

    .lexd-dict-actions .lexd-dict-inline-save,
    .lexd-dict-actions .lexd-dict-inline-cancel {
        min-height: 44px;
        padding: 8px 16px;
        font-size: 0.92rem;
        border-radius: 9px;
    }

    .lexd-dict-actions .lexd-dict-inline-save .dashicons,
    .lexd-dict-actions .lexd-dict-inline-cancel .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
        line-height: 20px;
    }

    /* Teljes szélességű akciós sáv szerkesztés közben */
    .lexd-dict-item--editing .lexd-dict-actions {
        width: 100%;
        justify-content: stretch;
        gap: 8px;
    }

    .lexd-dict-item--editing .lexd-dict-actions .lexd-dict-inline-save,
    .lexd-dict-item--editing .lexd-dict-actions .lexd-dict-inline-cancel {
        flex: 1;
        justify-content: center;
    }
}

