/* WordPress Style Admin Panel CSS */
:root {
    --wp-admin-bg: #f0f0f1;
    --wp-sidebar-bg: #1d2327;
    --wp-sidebar-hover: #135e96;
    --wp-sidebar-active: #2271b1;
    --wp-sidebar-text: #f0f0f1;
    --wp-sidebar-icon: #a7aaad;
    --wp-topbar-bg: #1d2327;
    --wp-primary: #2271b1;
    --wp-primary-hover: #135e96;
    --wp-card-bg: #ffffff;
    --wp-border: #c3c4c7;
    --wp-text: #2c3338;
    --wp-badge: #d63638;
}

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

body {
    background-color: var(--wp-admin-bg);
    color: var(--wp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    line-height: 1.4em;
}

/* WP Top Bar */
#wpadminbar {
    height: 32px;
    background: var(--wp-topbar-bg);
    color: #c3c4c7;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 13px;
}
#wpadminbar a {
    color: #c3c4c7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 8px;
}
#wpadminbar a:hover {
    background: #2c3338;
    color: #72aee6;
}

/* WP Layout */
#wpwrap {
    display: flex;
    min-height: 100vh;
    padding-top: 32px;
}

/* WP Left Sidebar */
#adminmenuwrap {
    width: 200px;
    background: var(--wp-sidebar-bg);
    flex-shrink: 0;
    min-height: calc(100vh - 32px);
}
#adminmenu {
    list-style: none;
    padding: 10px 0;
}
#adminmenu li {
    margin: 0;
    position: relative;
}
#adminmenu li a {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    color: var(--wp-sidebar-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.1s ease;
}
#adminmenu li a i {
    width: 20px;
    font-size: 14px;
    color: var(--wp-sidebar-icon);
    margin-right: 8px;
}
#adminmenu li:hover a, #adminmenu li a:hover {
    background: var(--wp-sidebar-hover);
    color: #72aee6;
}
#adminmenu li:hover a i {
    color: #72aee6;
}
#adminmenu li.current a {
    background: var(--wp-sidebar-active);
    color: #ffffff;
    font-weight: 600;
}
#adminmenu li.current a i {
    color: #ffffff;
}
#adminmenu .update-plugins {
    background-color: var(--wp-badge);
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 600;
    margin-left: auto;
}

/* WP Main Content Area */
#wpcontent {
    flex-grow: 1;
    padding: 20px 24px 40px;
    min-width: 0;
}
.wrap {
    max-width: 1400px;
}
.wrap h1 {
    font-size: 23px;
    font-weight: 400;
    color: #1d2327;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* WP Buttons */
.button {
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
    background: #f6f7f7;
    border-color: #dcdcde;
    color: #2271b1;
    font-weight: 400;
}
.button:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
    color: #135e96;
}
.button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    text-shadow: none;
    font-weight: 600;
}
.button-primary:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}
.button-danger {
    background: #d63638;
    border-color: #d63638;
    color: #fff;
}
.button-danger:hover {
    background: #b32d2e;
    border-color: #b32d2e;
    color: #fff;
}
.button-success {
    background: #00a32a;
    border-color: #00a32a;
    color: #fff;
}

/* WP Postbox / Cards */
.postbox {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-bottom: 20px;
    border-radius: 4px;
}
.postbox-header {
    border-bottom: 1px solid #c3c4c7;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.inside {
    padding: 16px;
}

/* WP Tables */
.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.wp-list-table th {
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #2c3338;
}
.wp-list-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 13px;
    vertical-align: middle;
}
.wp-list-table tr:hover td {
    background-color: #fbfbfb;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-new { background: #d63638; color: #fff; }
.badge-quoted { background: #dba617; color: #fff; }
.badge-won { background: #00a32a; color: #fff; }
.badge-closed { background: #8c8f94; color: #fff; }

/* WP Form Fields */
.form-table {
    width: 100%;
    border-collapse: collapse;
}
.form-table th {
    width: 220px;
    padding: 16px 12px 16px 0;
    text-align: left;
    vertical-align: top;
    font-weight: 600;
    color: #1d2327;
}
.form-table td {
    padding: 12px 0;
}
.regular-text {
    width: 25em;
    max-width: 100%;
}
.large-text {
    width: 100%;
}
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea {
    border: 1px solid #8c8f94;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #2c3338;
    background-color: #fff;
    box-shadow: 0 0 0 transparent;
}
input:focus, select:focus, textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

/* Dashboard Widget Stats Grid */
.dashboard-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #2271b1;
    padding: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stat-card.stat-amber { border-left-color: #dba617; }
.stat-card.stat-green { border-left-color: #00a32a; }
.stat-card.stat-red { border-left-color: #d63638; }

.stat-number {
    font-size: 26px;
    font-weight: 700;
    color: #1d2327;
    margin-top: 4px;
}
.stat-label {
    font-size: 12px;
    color: #646970;
    text-transform: uppercase;
    font-weight: 600;
}

/* WP Notice alerts */
.notice {
    background: #fff;
    border-left: 4px solid #72aee6;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin: 16px 0;
    padding: 12px;
}
.notice-success { border-left-color: #00a32a; }
.notice-error { border-left-color: #d63638; }
.notice-warning { border-left-color: #dba617; }

/* WP Login Page */
.login-body {
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-box {
    width: 360px;
    margin: 0 auto;
    padding: 8% 0 0;
}
.login-form {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    padding: 26px 24px;
    font-weight: 400;
    border-radius: 4px;
}
