/* دفترچه لغت - طراحی مدرن */
.vocab-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
    font-family: inherit;
}

.vocab-hint-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, #eaf4ff, #f0f7ff);
    border: 1px solid #cfe6fb;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.vocab-hint-banner .icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.vocab-hint-banner p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: #0a4d8c;
}

.vocab-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.vocab-search {
    position: relative;
    flex: 1;
    display: flex;
}

.vocab-search input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1px solid #e0e4e8;
    border-radius: 24px;
    font-size: 14px;
    background: #f7f9fb;
    outline: none;
    transition: border-color .15s;
}

.vocab-search input:focus {
    border-color: #066ac9;
    background: #fff;
}

.vocab-search .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa5b1;
    font-size: 15px;
    pointer-events: none;
}

.vocab-add-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #066ac9;
    color: #fff;
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(6,106,201,0.35);
    transition: transform .12s;
}
.vocab-add-btn:active { transform: scale(0.92); }

.vocab-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 10px;
    font-size: 12px;
    color: #9aa5b1;
}
.vocab-section-label .line {
    flex: 1;
    height: 1px;
    background: #e8ecf0;
}

.vocab-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vocab-card {
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(20,30,40,0.04);
    transition: box-shadow .15s, transform .15s;
}
.vocab-card:hover {
    box-shadow: 0 4px 14px rgba(20,30,40,0.08);
}

.vocab-card-text { flex: 1; min-width: 0; }

.vocab-en {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    color: #1c2733;
    direction: ltr;
    text-align: right;
}

.vocab-badge-sample {
    display: inline-block;
    font-size: 10px;
    background: #fdf1d6;
    color: #a9760a;
    padding: 2px 8px;
    border-radius: 8px;
    margin-right: 6px;
    vertical-align: middle;
}

.vocab-fa {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: #6b7684;
}

.vocab-source {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    color: #066ac9;
    background: #eaf4ff;
    padding: 2px 8px;
    border-radius: 8px;
}

.vocab-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-right: 10px;
}

.vocab-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f4f6f8;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s;
}
.vocab-icon-btn:hover { background: #e8ecf0; }
.vocab-icon-btn.delete:hover { background: #fdecec; color: #d9534f; }

.vocab-empty {
    text-align: center;
    color: #9aa5b1;
    font-size: 13.5px;
    padding: 24px 0;
}

/* مودال افزودن کلمه */
.vocab-modal {
    position: fixed;
    inset: 0;
    background: rgba(15,23,32,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.vocab-modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    width: 100%;
    max-width: 360px;
}

.vocab-modal-box h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #1c2733;
}

.vocab-modal-box input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e0e4e8;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    outline: none;
}
.vocab-modal-box input:focus { border-color: #066ac9; }

.vocab-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.vocab-modal-actions button {
    flex: 1;
    padding: 11px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.vocab-btn-save {
    background: #066ac9;
    color: #fff;
}

.vocab-btn-cancel {
    background: #f4f6f8;
    color: #4b5563;
}
