/* ============================================================
   Default Theme — Admin Styles
   Extracted from layouts/admin.php
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #3c434a;
    background: #f0f0f1;
}

a {
    color: #2271b1;
    text-decoration: none;
}

a:hover {
    color: #135e96;
}

/* ---- Admin bar ---- */
#wpadminbar {
    background: #1d2327;
    color: #f0f0f1;
    height: 32px;
    line-height: 32px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
}

#wpadminbar a {
    color: #f0f0f1;
}

#wpadminbar a:hover {
    color: #72aee6;
}

/* ---- Sidebar ---- */
#adminmenuback {
    position: fixed;
    top: 32px;
    left: 0;
    bottom: 0;
    width: 190px;
    background: #1d2327;
    z-index: 99998;
    overflow-y: auto;
}

#adminmenu {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

#adminmenu li.wp-menu-separator {
    height: 1px;
    margin: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
}

#adminmenu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: rgba(240, 240, 241, 0.7);
    font-size: 13px;
    transition: all 0.1s;
}

#adminmenu a:hover {
    color: #72aee6;
    background: rgba(255, 255, 255, 0.04);
}

#adminmenu a.current,
#adminmenu a.current:hover {
    color: #fff;
    background: #2271b1;
    font-weight: 500;
}

#adminmenu .menu-icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    font-size: 15px;
}

/* ---- Content area ---- */
#wpcontent {
    margin-left: 190px;
    padding-top: 32px;
    min-height: 100vh;
}

#wpbody {
    padding: 16px 24px;
}

.wp-heading-wrap {
    background: #fff;
    border-bottom: 1px solid #dcdcde;
    padding: 12px 24px;
    margin: -16px -24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wp-heading-wrap h1 {
    font-size: 23px;
    font-weight: 400;
    color: #1d2327;
}

/* ---- Cards ---- */
.wp-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-bottom: 16px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.wp-card-header {
    padding: 12px 20px;
    border-bottom: 1px solid #dcdcde;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.wp-card-body { padding: 32px;
    padding: 24px;
}

/* ---- Dashboard widgets ---- */
.dw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dw-item {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.dw-item .dw-num {
    font-size: 40px;
    font-weight: 300;
    color: #2271b1;
    line-height: 1.2;
}

.dw-item .dw-lbl {
    font-size: 13px;
    color: #646970;
    margin-top: 4px;
}

/* ---- Tables ---- */
.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.wp-list-table thead th {
    background: #fff;
    border-bottom: 1px solid #c3c4c7;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #2c3338;
    text-align: left;
}

.wp-list-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #dcdcde;
    font-size: 13px;
    vertical-align: middle;
}

.wp-list-table tbody tr:nth-child(odd) {
    background: #f6f7f7;
}

.wp-list-table tbody tr:hover {
    background: #f0f6fc;
}

.wp-list-table .row-actions {
    visibility: hidden;
    font-size: 12px;
}

.wp-list-table tbody tr:hover .row-actions {
    visibility: visible;
}

.wp-list-table .row-actions .delete {
    color: #b32d2e;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.wp-list-table .row-actions .delete:hover {
    color: #d63638;
}

.wp-list-table .row-actions span + span::before {
    content: " | ";
    color: #c3c4c7;
}

/* ---- Buttons ---- */
.button {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    line-height: 2.15;
    min-height: 30px;
    border: 1px solid #2271b1;
    border-radius: 3px;
    background: #2271b1;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.button:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.button-secondary {
    background: #f6f7f7;
    border-color: #8c8f94;
    color: #2c3338;
}

.button-secondary:hover {
    background: #f0f0f1;
}

/* ---- Forms ---- */
.form-table {
    width: 100%;
}

.form-table th {
    padding: 16px 10px 16px 0;
    text-align: left;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
    vertical-align: top;
    width: 200px;
}

.form-table td {
    padding: 24px;
    vertical-align: top;
}

.form-table input[type="text"],
.form-table input[type="password"],
.form-table textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    color: #2c3338;
    box-sizing: border-box;
}

.form-table textarea {
    resize: vertical;
    max-width: 100%;
}

.form-table input:focus,
.form-table textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.form-table .description {
    font-size: 12px;
    color: #646970;
    margin-top: 4px;
    font-style: italic;
}

/* ---- Notices ---- */
.notice {
    padding: 8px 12px;
    margin-bottom: 16px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 13px;
}

.notice-success {
    background: #edfaef;
    border-color: #00a32a;
}

.notice-error {
    background: #fcf0f1;
    border-color: #d63638;
}

/* ---- Tablenav / pagination ---- */
.tablenav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
}

.tablenav-pages a,
.tablenav-pages span {
    display: inline-block;
    padding: 0 6px;
    line-height: 30px;
}

/* ---- Theme cards (used in site settings) ---- */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.theme-card {
    background: #fff;
    border: 2px solid #dcdcde;
    border-radius: 4px;
    padding: 16px;
    text-align: center;
    transition: border-color 0.2s;
}

.theme-card:hover {
    border-color: #2271b1;
}

.theme-card.active {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.theme-card h3 {
    font-size: 15px;
    margin-bottom: 4px;
    color: #1d2327;
}

.theme-card .theme-desc {
    font-size: 12px;
    color: #646970;
    margin-bottom: 12px;
}

.theme-card .theme-meta {
    font-size: 11px;
    color: #a7aaad;
    margin-bottom: 10px;
}

.theme-card .theme-active-label {
    display: inline-block;
    font-size: 12px;
    color: #00a32a;
    font-weight: 600;
    padding: 2px 10px;
    border: 1px solid #00a32a;
    border-radius: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 782px) {
    #adminmenuback {
        width: 46px;
    }

    #wpcontent {
        margin-left: 46px;
    }

    #adminmenu a {
        justify-content: center;
        padding: 10px 0;
    }

    #adminmenu .menu-label {
        display: none;
    }
}
