.rooms-admin-page {
    display: grid;
    gap: 24px;
    padding: 4px 0 24px;
}

.admin-page__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-page__head h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}

.admin-page__head p {
    margin: 0;
    max-width: 760px;
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
}

.rooms-admin-page__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.rooms-admin-locale-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.rooms-admin-locale-form label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    color: #334155;
}

.rooms-admin-locale-form select {
    min-width: 180px;
}

.alert {
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.alert-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.alert-danger {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.admin-card {
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.admin-card h2 {
    margin: 0 0 18px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
    color: #0f172a;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-form-group {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.admin-form-group--full {
    grid-column: 1 / -1;
}

.admin-form-group label {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    color: #334155;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea,
.rooms-admin-locale-form select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    box-sizing: border-box;
    appearance: none;
}

.admin-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-form-group input[readonly] {
    background: #f8fafc;
    color: #475569;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus,
.rooms-admin-locale-form select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.admin-button,
.rooms-admin-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
    box-sizing: border-box;
}

.admin-button:hover,
.rooms-admin-action-button:hover {
    transform: translateY(-1px);
}

.admin-button {
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.22);
}

.admin-button:hover {
    box-shadow: 0 16px 36px rgba(79, 70, 229, 0.28);
}

.admin-button--secondary {
    color: #334155;
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.admin-button--secondary:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.admin-table thead th {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
    color: #334155;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.55;
    color: #0f172a;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.admin-empty-state {
    padding: 32px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
    text-align: center;
}

.admin-empty-state p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
}

.rooms-admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rooms-admin-delete-form {
    margin: 0;
}

.rooms-admin-action-button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 12px;
}

.rooms-admin-action-button--edit {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.rooms-admin-action-button--edit:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.rooms-admin-action-button--delete {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.rooms-admin-action-button--delete:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

html[dir="rtl"] .admin-page__head,
body.is-rtl .admin-page__head {
    direction: rtl;
}

html[dir="rtl"] .admin-page__head h1,
html[dir="rtl"] .admin-page__head p,
html[dir="rtl"] .admin-table thead th,
html[dir="rtl"] .admin-table tbody td,
body.is-rtl .admin-page__head h1,
body.is-rtl .admin-page__head p,
body.is-rtl .admin-table thead th,
body.is-rtl .admin-table tbody td {
    text-align: right;
}

html[dir="rtl"] .rooms-admin-page__actions,
body.is-rtl .rooms-admin-page__actions {
    justify-content: flex-start;
}

html[dir="rtl"] .rooms-admin-actions,
body.is-rtl .rooms-admin-actions {
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-page__head {
        flex-direction: column;
        align-items: stretch;
    }

    .rooms-admin-page__actions {
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }

    .rooms-admin-locale-form {
        align-items: stretch;
    }

    .admin-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-button,
    .rooms-admin-action-button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .rooms-admin-page {
        gap: 18px;
    }

    .admin-card {
        padding: 16px;
        border-radius: 18px;
    }

    .admin-page__head h1 {
        font-size: 24px;
    }

    .admin-page__head p {
        font-size: 14px;
    }

    .admin-table {
        min-width: 760px;
    }

    .rooms-admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .rooms-admin-delete-form {
        width: 100%;
    }
}