/* Admin content styles (formerly inside AdminLayout.razor).
   Pages opt in via class names — `.wp-list-table`, `.button-primary`,
   `.postbox`, `.form-field`, `.status-badge`, `#title`, `.wrap`.
   Layout chrome (dark sidebar, top admin bar) lives in AppShell now and
   is intentionally not part of this file. */

:root {
    --wp-admin-bg: #f1f1f1;
    --wp-blue: #2271b1;
    --wp-blue-hover: #135e96;
    --wp-border: #c3c4c7;
    --wp-text: #1d2327;
    --wp-text-light: #50575e;
}

.wrap { margin: 0; }
.wrap h1 { font-size: 23px; font-weight: 400; margin: 0 0 15px; padding: 9px 0 4px; line-height: 1.3; }
.wrap h1 .page-title-action, .wrap .page-title-action {
    margin-left: 8px; padding: 4px 8px; font-size: 13px;
    background: var(--wp-blue); color: #fff; text-decoration: none; border-radius: 3px;
}
.wrap .page-title-action:hover { background: var(--wp-blue-hover); }

.wp-list-table { width: 100%; border-spacing: 0; border: 1px solid var(--wp-border); background: #fff; }
.wp-list-table thead th { background: #f0f0f1; border-bottom: 1px solid var(--wp-border); padding: 8px 10px; text-align: left; font-weight: 400; font-size: 13px; color: var(--wp-text-light); }
.wp-list-table tbody td { padding: 8px 10px; border-bottom: 1px solid #f0f0f1; vertical-align: top; }
.wp-list-table tbody tr:hover { background: #f6f7f7; }
.wp-list-table .row-title { font-weight: 600; font-size: 13px; color: var(--wp-blue); text-decoration: none; }
.wp-list-table .row-title:hover { color: var(--wp-blue-hover); }
.wp-list-table .row-actions { color: var(--wp-text-light); font-size: 12px; padding-top: 2px; }
.wp-list-table .row-actions a { color: var(--wp-blue); text-decoration: none; }

.button, .button-secondary {
    display: inline-block; padding: 4px 10px; font-size: 13px;
    border: 1px solid var(--wp-border); background: #f6f7f7; color: var(--wp-blue);
    border-radius: 3px; cursor: pointer; text-decoration: none; line-height: 1.5;
}
.button:hover { background: #f0f0f1; color: var(--wp-blue-hover); }
.button-primary {
    display: inline-block; padding: 4px 12px; font-size: 13px;
    border: 1px solid var(--wp-blue); background: var(--wp-blue); color: #fff;
    border-radius: 3px; cursor: pointer; text-decoration: none; line-height: 1.5;
}
.button-primary:hover { background: var(--wp-blue-hover); border-color: var(--wp-blue-hover); }

.form-field { margin-bottom: 15px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 13px; }
.form-field input[type="text"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
    width: 100%; padding: 5px 8px; font-size: 13px;
    border: 1px solid #8c8f94; border-radius: 4px; line-height: 2;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--wp-blue); box-shadow: 0 0 0 1px var(--wp-blue); outline: none;
}

.post-edit-wrap { display: flex; gap: 20px; }
.post-edit-main { flex: 1; min-width: 0; }
.post-edit-side { width: 280px; min-width: 280px; }
.postbox { background: #fff; border: 1px solid var(--wp-border); border-radius: 0; margin-bottom: 20px; }
.postbox h2 { margin: 0; padding: 8px 12px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--wp-border); background: #f6f7f7; }
.postbox .inside { padding: 12px; }

.status-badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.status-draft { background: #f0f0f1; color: var(--wp-text-light); }
.status-published { background: #d4edda; color: #155724; }
.status-archived { background: #fff3cd; color: #856404; }

#title {
    width: 100%; padding: 3px 8px; font-size: 1.7em; line-height: 1.5;
    height: auto; border: 1px solid #8c8f94; border-radius: 0; outline: none;
}
#title:focus { border-color: var(--wp-blue); box-shadow: 0 0 0 1px var(--wp-blue); }
.edit-slug { font-size: 12px; color: var(--wp-text-light); margin: 5px 0 15px; }
.edit-slug code { background: #f0f0f1; padding: 2px 6px; }
