.translations-page {
    display: grid;
    gap: 18px;
}

.translations-page__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.translations-page__head h1 {
    margin: 0 0 6px;
}

.translations-page__head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.translations-page__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.translations-create-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #0f172a;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.translations-create-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.translations-toolbar,
.translations-card,
.translations-form-card {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.translations-toolbar,
.translations-form-card {
    padding: 18px 20px;
}

.translations-toolbar {
    display: grid;
    gap: 14px;
}

.translations-form-card {
    display: grid;
    gap: 16px;
}

.translations-form-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.translations-form-card__head h2 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.3;
    color: #0f172a;
}

.translations-form-card__head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.translations-form-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.translations-form-cancel:hover {
    background: #f8fafc;
}

.translations-form {
    display: grid;
    gap: 16px;
}

.translations-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.translations-form__field {
    display: grid;
    gap: 8px;
}

.translations-form__field--full {
    grid-column: 1 / -1;
}

.translations-form__field label {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.translations-form__field input,
.translations-form__field select,
.translations-form__field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.translations-form__field textarea {
    min-height: 120px;
    resize: vertical;
}

.translations-form__field input:focus,
.translations-form__field select:focus,
.translations-form__field textarea:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.translations-form__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.translations-save-button,
.translations-search-button,
.translations-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.translations-save-button {
    border: 1px solid #0f172a;
    background: #0f172a;
    color: #ffffff;
    cursor: pointer;
}

.translations-save-button:hover {
    opacity: 0.92;
}

.translations-toolbar__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.translations-toolbar__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.translations-locale-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.translations-locale-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.translations-locale-tab:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.translations-locale-tab.is-active {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
}

.translations-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.translations-search-input {
    width: 280px;
    max-width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
}

.translations-search-input:focus {
    border-color: #0f172a;
}

.translations-search-button {
    border: 1px solid #0f172a;
    background: #0f172a;
    color: #ffffff;
    cursor: pointer;
}

.translations-search-button:hover {
    opacity: 0.92;
}

.translations-reset-button {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
}

.translations-reset-button:hover {
    background: #f8fafc;
}

.translations-summary,
.translations-current-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 14px;
}

.translations-summary strong,
.translations-current-filter strong {
    color: #0f172a;
}

.translations-empty {
    padding: 28px 20px;
}

.translations-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.translations-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.translations-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.translations-table tbody td {
    padding: 14px 16px;
    vertical-align: top;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.55;
}

.translations-table tbody tr:last-child td {
    border-bottom: 0;
}

.translations-table tbody tr:hover {
    background: #f8fafc;
}

.translations-actions-col {
    width: 180px;
}

.translations-locale-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.translations-locale-badge--tr {
    border-color: #fecaca;
    background: #fff1f2;
}

.translations-locale-badge--en {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.translations-locale-badge--ar {
    border-color: #d9f99d;
    background: #f7fee7;
}

.translations-key-cell code {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0f172a;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
}

.translations-value-cell {
    min-width: 320px;
    word-break: break-word;
}

.translations-actions-cell {
    white-space: nowrap;
}

.translations-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.translations-delete-form {
    margin: 0;
}

.translations-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.translations-action-button--edit {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
}

.translations-action-button--edit:hover {
    background: #f8fafc;
}

.translations-action-button--delete {
    border: 1px solid #dc2626;
    background: #ffffff;
    color: #dc2626;
    cursor: pointer;
}

.translations-action-button--delete:hover {
    background: #fef2f2;
}

html[dir="rtl"] .translations-table thead th,
html[dir="rtl"] .translations-table tbody td,
body.is-rtl .translations-table thead th,
body.is-rtl .translations-table tbody td {
    text-align: right;
}

@media (max-width: 860px) {
    .translations-page__head,
    .translations-form-card__head,
    .translations-toolbar__top,
    .translations-toolbar__bottom,
    .translations-form__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .translations-page__actions,
    .translations-search-form {
        width: 100%;
    }

    .translations-form__grid {
        grid-template-columns: 1fr;
    }

    .translations-create-button,
    .translations-save-button,
    .translations-search-button,
    .translations-reset-button,
    .translations-form-cancel {
        width: 100%;
    }

    .translations-search-input {
        width: 100%;
    }

    .translations-table {
        min-width: 0;
    }

    .translations-table thead {
        display: none;
    }

    .translations-table,
    .translations-table tbody,
    .translations-table tr,
    .translations-table td {
        display: block;
        width: 100%;
    }

    .translations-table tbody tr {
        padding: 14px;
        border-bottom: 1px solid #e2e8f0;
    }

    .translations-table tbody tr:last-child {
        border-bottom: 0;
    }

    .translations-table tbody td {
        padding: 8px 0;
        border: 0;
    }

    .translations-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
    }

    .translations-value-cell {
        min-width: 0;
    }

    .translations-actions {
        width: 100%;
    }

    .translations-action-button,
    .translations-delete-form {
        width: 100%;
    }

    .translations-delete-form .translations-action-button {
        width: 100%;
    }
}