:root {
    --cmpc-primary: #8bbf86;
    --cmpc-primary-dark: #3f6f3b;
    --cmpc-secondary: #4f6c72;
    --cmpc-highlight: #e4efd0;
    --cmpc-muted: #c8cfab;
    --cmpc-surface: #f7faf5;
    --cmpc-border: #cfd8cb;
    --cmpc-text: #2b2f2d;
}

/* ============================================
   CHANGE FORM STYLING (ADD/EDIT VIEWS)
   ============================================ */

.change-form .module,
.change-form .inline-group,
.change-form .aligned,
.change-form fieldset {
    border: 1px solid var(--cmpc-border) !important;
    border-radius: 8px !important;
    background: var(--cmpc-surface) !important;
}

.change-form .module h2,
.change-form .module caption,
.change-form .inline-group h2 {
    background: var(--cmpc-secondary) !important;
    color: #ffffff !important;
    border-radius: 8px 8px 0 0 !important;
}

.change-form .form-row label,
.change-form .aligned label,
.change-form .inline-related h3 {
    color: var(--cmpc-secondary) !important;
    font-weight: 600 !important;
}

.change-form input[type="text"],
.change-form input[type="number"],
.change-form input[type="email"],
.change-form input[type="url"],
.change-form input[type="password"],
.change-form select,
.change-form textarea {
    border: 1px solid var(--cmpc-border) !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: var(--cmpc-text) !important;
}

.change-form input:focus,
.change-form select:focus,
.change-form textarea:focus {
    border-color: var(--cmpc-primary) !important;
    box-shadow: 0 0 0 2px rgba(57, 131, 54, 0.2) !important;
    outline: none !important;
}

.change-form .submit-row {
    background: #edf5ea !important;
    border: 1px solid var(--cmpc-border) !important;
    border-radius: 8px !important;
}

.change-form .submit-row input,
.change-form .submit-row a.deletelink {
    border-radius: 6px !important;
}

.change-form .submit-row input.default,
#user-tools button[type="submit"] {
    background: var(--cmpc-primary) !important;
    border-color: var(--cmpc-primary-dark) !important;
    color: #1f2f25 !important;
}

.change-form .submit-row input.default:hover,
#user-tools button[type="submit"]:hover {
    background: var(--cmpc-primary-dark) !important;
}

.dotred {
    height: 15px;
    width: 15px;
    background-color: #ff3b30;
    border-radius: 50%;
    display: inline-block;
}

.dotgreen {
    height: 15px;
    width: 15px;
    background-color: var(--cmpc-primary);
    border-radius: 50%;
    display: inline-block;
}

/* ============================================
   HEADER + BRANDING
   ============================================ */

.admin-logo {
    height: 35px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

#site-name {
    margin: 0;
    padding: 5px 0;
    line-height: normal;
}

#site-name a {
    display: inline-block;
    padding: 5px 0;
}

#header {
    background: linear-gradient(180deg, #e7f0e4 0%, #d6e7d2 100%) !important;
    background-color: transparent !important;
    border-bottom: 2px solid var(--cmpc-muted) !important;
}

#user-tools {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--cmpc-secondary) !important;
    padding: 5px 10px;
    line-height: 1.5;
}

#user-tools .welcome-msg,
#user-tools strong {
    color: var(--cmpc-secondary) !important;
}

#user-tools a {
    color: #3f6f3b !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

#user-tools a:hover {
    color: #2f5f3a !important;
    text-decoration: underline;
}

#user-tools a:focus {
    outline: 2px solid var(--cmpc-highlight);
    outline-offset: 2px;
    border-radius: 2px;
}

#user-tools a::after {
    content: "";
}

/* ============================================
   LINKS + BREADCRUMBS
   ============================================ */

a {
    color: #3f6f3b !important;
}

a:hover {
    color: #2f5f3a !important;
    text-decoration: underline !important;
}

.breadcrumbs,
.breadcrumbs a,
.breadcrumbs span {
    color: #ffffff !important;
}

.breadcrumbs a:hover {
    color: #f2f7f1 !important;
    text-decoration: none !important;
}

.breadcrumbs {
    background: var(--cmpc-secondary) !important;
}

/* ============================================
   CHANGELIST + PAGINATION
   ============================================ */

.module table caption,
#changelist-filter-header,
.paginator {
    background-color: var(--cmpc-secondary) !important;
    color: #ffffff !important;
}

.module table caption a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.module table caption a:hover {
    color: var(--cmpc-highlight) !important;
    text-decoration: underline !important;
}

.paginator {
    padding: 10px 15px !important;
    border-radius: 4px !important;
}

.paginator a,
.paginator a:link,
.paginator a:visited {
    color: #1f2f25 !important;
    background-color: var(--cmpc-primary) !important;
    border: 1px solid var(--cmpc-primary-dark) !important;
    padding: 5px 10px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.paginator a:hover {
    background-color: #ffffff !important;
    color: #2f5f3a !important;
    border-color: #2f5f3a !important;
}

.paginator .this-page,
.paginator .show-all a,
.paginator .no-pages {
    color: #ffffff !important;
}

.paginator .show-all a:hover {
    background-color: transparent !important;
    color: var(--cmpc-highlight) !important;
    text-decoration: underline !important;
}

.result-list .paginator {
    margin-top: 10px !important;
}

.changelist .paginator {
    border-bottom: 1px solid #1f3438 !important;
}

/* ============================================
   OBJECT TOOLS (ADD / EXPORT)
   ============================================ */

.object-tools li {
    list-style: none !important;
}

.object-tools .addlink,
.object-tools .export_link,
ul.object-tools li a.addlink,
ul.object-tools li a.export_link {
    background-color: #ffffff !important;
    color: #3f6f3b !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
    border: 1px solid #3f6f3b !important;
}

.object-tools .addlink:hover,
.object-tools .export_link:hover,
ul.object-tools li a.addlink:hover,
ul.object-tools li a.export_link:hover {
    background-color: #eef6ec !important;
    color: #2f5f3a !important;
    border-color: #2f5f3a !important;
    text-decoration: none !important;
}

