@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
/* ==========================================================================
   ELEGANCE AROMA CRM
   GLOBAL DESIGN SYSTEM
   File: assets/css/style.css
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
    --ea-bg: #0c0c0c;
    --ea-sidebar: #111111;

    --ea-panel: #171717;
    --ea-panel-soft: #1c1c1c;
    --ea-panel-light: #1c1c1c;

    --ea-border: #292929;

    --ea-white: #f5f5f5;
    --ea-text: #e8e8e8;
    --ea-muted: #969696;

    --ea-gold: #a58a61;
    --ea-gold-hover: #c0a275;

    --ea-success: #6f936f;
    --ea-warning: #b49562;
    --ea-danger: #a65f5f;

    --ea-radius: 9px;
    --ea-radius-small: 7px;

    --ea-sidebar-width: 240px;
    --ea-topbar-height: 70px;
}


/* ==========================================================================
   2. RESET
   ========================================================================== */

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

html {
    min-height: 100%;
    background: var(--ea-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--ea-bg);
    color: var(--ea-text);
    font-family:
        'Montserrat',
        Arial,
        Helvetica,
        sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
}

button {
    cursor: pointer;
}


/* ==========================================================================
   3. LINKS
   ========================================================================== */

a {
    color: var(--ea-gold);
    text-decoration: none;
}

a:hover {
    color: var(--ea-gold-hover);
}


/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--ea-white);
    font-weight: 600;
}

h1 {
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 1.25;
}

h2 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.3;
}

h3 {
    font-size: 16px;
}

p {
    margin-top: 0;
}

.muted {
    color: var(--ea-muted);
}

.gold {
    color: var(--ea-gold);
}

.white {
    color: var(--ea-white);
}


/* ==========================================================================
   5. MAIN CRM LAYOUT
   ========================================================================== */

.crm-layout,
.dashboard-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        var(--ea-sidebar-width)
        minmax(0, 1fr);
    background: var(--ea-bg);
}

.main-area {
    min-width: 0;
    min-height: 100vh;
    background: var(--ea-bg);
}

.page {
    width: 100%;
    padding: 32px;
    background: var(--ea-bg);
}


/* ==========================================================================
   6. SIDEBAR
   ========================================================================== */

.sidebar {
    min-height: 100vh;
    padding: 28px 18px;
    background: var(--ea-sidebar);
    border-right: 1px solid var(--ea-border);
}

.sidebar-logo {
    margin-bottom: 32px;
    text-align: center;
}

.sidebar-logo img {
    width: 125px;
    max-width: 100%;
    height: auto;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 13px;
    border-radius: var(--ea-radius-small);
    color: var(--ea-muted);
    font-size: 13px;
    line-height: 1.35;
    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease;
}

.sidebar-menu a:hover {
    background: var(--ea-panel);
    color: var(--ea-white);
}

.sidebar-menu a.active,
.sidebar-menu .active {
    background: rgba(165, 138, 97, .14);
    color: var(--ea-gold);
}

.sidebar-label {
    padding: 19px 13px 7px;
    color: #686868;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ==========================================================================
   7. TOP BAR
   ========================================================================== */

.topbar {
    min-height: var(--ea-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 32px;
    background: var(--ea-bg);
    border-bottom: 1px solid var(--ea-border);
}

.topbar-user {
    color: var(--ea-muted);
    font-size: 12px;
}

.topbar-user strong {
    color: var(--ea-white);
    font-weight: 600;
}

.topbar a {
    color: var(--ea-gold);
}

.topbar a:hover {
    color: var(--ea-gold-hover);
}


/* ==========================================================================
   8. CARDS / PANELS
   ========================================================================== */

.card,
.panel {
    background: var(--ea-panel);
    border: 1px solid var(--ea-border);
    border-radius: var(--ea-radius);
    padding: 18px;
}

.panel-soft {
    background: var(--ea-panel-soft);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.section-title h2,
.section-title h3 {
    margin: 0;
}


/* ==========================================================================
   9. FORM ELEMENTS
   ========================================================================== */

label {
    display: block;
    margin-bottom: 6px;
    color: var(--ea-muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .55px;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    background: var(--ea-panel-soft);
    color: var(--ea-white);
    border: 1px solid var(--ea-border);
    border-radius: var(--ea-radius-small);
    outline: none;
    font-size: 13px;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

input,
select {
    min-height: 42px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ea-gold);
    box-shadow: 0 0 0 2px rgba(165, 138, 97, .10);
}

input::placeholder,
textarea::placeholder {
    color: #727272;
}

select option {
    background: var(--ea-panel-soft);
    color: var(--ea-white);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: 0;
    padding: 0;
    accent-color: var(--ea-gold);
}


/* ==========================================================================
   10. BUTTONS
   ========================================================================== */

.btn,
.button,
.primary-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border: 1px solid var(--ea-gold);
    border-radius: var(--ea-radius-small);
    background: var(--ea-gold);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.btn:hover,
.button:hover,
.primary-btn:hover {
    background: var(--ea-gold-hover);
    border-color: var(--ea-gold-hover);
    color: #ffffff;
}

.btn-secondary,
.secondary-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--ea-border);
    border-radius: var(--ea-radius-small);
    background: transparent;
    color: var(--ea-white);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.btn-secondary:hover,
.secondary-btn:hover {
    border-color: var(--ea-gold);
    color: var(--ea-gold);
}


/* ==========================================================================
   11. TABLES
   ========================================================================== */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: var(--ea-text);
}

th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--ea-border);
    color: var(--ea-muted);
    font-size: 9px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .6px;
    white-space: nowrap;
}

td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--ea-border);
    color: var(--ea-text);
    font-size: 12px;
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: rgba(255, 255, 255, .018);
}


/* ==========================================================================
   12. BADGES / STATUS
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 8px;
    border-radius: 20px;
    background: var(--ea-panel-soft);
    color: var(--ea-text);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.badge-gold {
    background: rgba(165, 138, 97, .14);
    color: #d8be91;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 20px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.status-badge.good,
.status-badge.active {
    background: rgba(111, 147, 111, .14);
    color: #a5c3a5;
}

.status-badge.warning,
.status-badge.attention {
    background: rgba(180, 149, 98, .14);
    color: #d8be91;
}

.status-badge.danger,
.status-badge.error {
    background: rgba(166, 95, 95, .14);
    color: #d89a9a;
}

.status-badge.muted,
.status-badge.inactive,
.status-badge.paused {
    background: rgba(169, 169, 169, .09);
    color: var(--ea-muted);
}


/* ==========================================================================
   13. ALERTS
   ========================================================================== */

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--ea-border);
    border-radius: var(--ea-radius-small);
    font-size: 12px;
    line-height: 1.5;
}

.alert-success {
    background: rgba(111, 147, 111, .10);
    border-color: rgba(111, 147, 111, .35);
    color: #bbd6bb;
}

.alert-error {
    background: rgba(166, 95, 95, .10);
    border-color: rgba(166, 95, 95, .35);
    color: #e0aaaa;
}

.alert-warning {
    background: rgba(180, 149, 98, .10);
    border-color: rgba(180, 149, 98, .35);
    color: #d8be91;
}


/* ==========================================================================
   14. COMMON PAGE HEADERS
   ========================================================================== */

.page-header,
.page-heading,
.account-header,
.diffuser-header {
    margin-bottom: 22px;
}

.page-header h1,
.page-heading h1,
.account-header h1,
.diffuser-header h1 {
    margin-bottom: 6px;
}

.header-meta,
.account-meta {
    color: var(--ea-muted);
    font-size: 11px;
    line-height: 1.6;
}


/* ==========================================================================
   15. COMMON SUMMARY CARDS
   ========================================================================== */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.summary-card,
.stat-card {
    background: var(--ea-panel);
    border: 1px solid var(--ea-border);
    border-radius: var(--ea-radius);
    padding: 18px;
}

.summary-label,
.stat-label {
    margin-bottom: 7px;
    color: var(--ea-muted);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.summary-value {
    color: var(--ea-white);
    font-size: 14px;
    font-weight: 600;
}

.summary-sub {
    margin-top: 4px;
    color: var(--ea-muted);
    font-size: 10px;
}


/* ==========================================================================
   16. UTILITY CLASSES
   ========================================================================== */

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.hidden {
    display: none !important;
}


/* ==========================================================================
   17. TABLET
   ========================================================================== */

@media (max-width: 1100px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================================
   18. MOBILE
   ========================================================================== */

@media (max-width: 800px) {
    .crm-layout,
    .dashboard-layout {
        display: block;
    }

    .main-area {
        min-height: auto;
    }

    .page {
        padding: 20px 14px 35px;
    }

    .topbar {
        min-height: 62px;
        padding: 0 16px;
    }

    .card,
    .panel,
    .summary-card,
    .stat-card {
        padding: 15px;
    }

    h1 {
        font-size: 23px;
    }

    h2 {
        font-size: 18px;
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}


/* ==========================================================================
   19. SMALL PHONE
   ========================================================================== */

@media (max-width: 480px) {
    .page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .topbar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-title {
        align-items: flex-start;
    }
}

/* ==========================================================================
   20. ELEGANCE AROMA CRM
   MASTER TYPOGRAPHY SYSTEM

   This block intentionally uses !important.
   Its purpose is to override old page-specific font sizes so typography
   stays consistent across Dashboard, Prospects, Clients, Diffusers,
   Refills, Service, Users, Configuration and Reports.
   ========================================================================== */


/* ==========================================================================
   FONT
   ========================================================================== */

body,
body * {
    font-family:
        'Montserrat',
        Arial,
        Helvetica,
        sans-serif !important;
}


/*
|--------------------------------------------------------------------------
| RESET OLD PAGE-SPECIFIC FONT SIZES
|--------------------------------------------------------------------------
|
| Old PHP pages contain their own custom font sizes.
| Make normal content inherit first, then define the hierarchy below.
|
*/

body * {
    font-size: inherit !important;
}


/* ==========================================================================
   BASE TEXT
   ========================================================================== */

body {
    font-size: 15px !important;
    line-height: 1.5 !important;
}


/* ==========================================================================
   PAGE TITLE
   Examples:
   Clients
   Prospects
   Diffusers
   Good to see you, Thiago.
   ========================================================================== */

h1,
.page-header h1,
.page-heading h1,
.account-header h1,
.client-header h1,
.prospect-header h1,
.diffuser-header h1 {
    margin-top: 0 !important;
    margin-bottom: 7px !important;

    color: var(--ea-white) !important;

    font-size: 32px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
}


/* ==========================================================================
   PAGE DESCRIPTION
   Examples:
   Search your client database...
   Here is what is happening across your CRM.
   ========================================================================== */

.header-meta,
.account-meta,
.page-description,
.page-subtitle,
.header-description,
.page-header p,
.page-heading p,
.client-header p,
.prospect-header p,
.diffuser-header p {
    color: var(--ea-muted) !important;

    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
}


/* ==========================================================================
   MAJOR SECTION TITLES
   Examples:
   Client Database
   Recent Accounts
   Quick Actions
   Locations & Diffusers
   Recent Activity
   ========================================================================== */

h2,
.section-title,
.section-heading,
.card-title,
.panel-title,
.section-header h2 {
    color: var(--ea-white) !important;

    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}


/* ==========================================================================
   SMALLER SECTION TITLES
   Examples:
   Follow Ups Due Today
   Contact Information
   ========================================================================== */

h3,
.section-title h3,
.section-header h3 {
    color: var(--ea-white) !important;

    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}


/* ==========================================================================
   SECTION DESCRIPTION
   ========================================================================== */

.section-description,
.section-subtitle,
.card-description,
.panel-description {
    color: var(--ea-muted) !important;

    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
}


/* ==========================================================================
   PRIMARY NAMES
   All names should visually match each other.

   Examples:
   Elegance Aroma
   Palacio do Forro
   Thiago Neves when shown as a contact
   Home
   Head Office
   Forte Lobby
   ========================================================================== */

.company-name,
.client-name,
.prospect-name,
.account-name,
.contact-name,
.location-name,
.diffuser-name,
.entity-name,
.activity-subject {
    color: var(--ea-white) !important;

    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}


/* ==========================================================================
   TABLE PRIMARY CONTENT
   ========================================================================== */

table,
tbody,
tr,
td {
    font-size: 15px !important;
}

td {
    color: var(--ea-text) !important;
    line-height: 1.45 !important;
}

td strong,
td b,
td a {
    font-size: 15px !important;
}


/* ==========================================================================
   TABLE HEADERS
   ========================================================================== */

th,
.table-label,
.column-label {
    color: var(--ea-muted) !important;

    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;

    text-transform: uppercase !important;
    letter-spacing: 0.65px !important;
}


/* ==========================================================================
   FIELD LABELS
   Examples:
   CONTACT
   LOCATION
   DIFFUSERS
   OWNER
   FRAGRANCE
   ========================================================================== */

label,
.info-label,
.field-label,
.summary-label,
.stat-label,
.diffuser-label {
    color: var(--ea-muted) !important;

    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;

    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
}


/* ==========================================================================
   STANDARD VALUES
   ========================================================================== */

.info-value,
.field-value,
.summary-value {
    color: var(--ea-white) !important;

    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}


/* ==========================================================================
   SECONDARY INFORMATION
   Examples:
   Phone number
   Won
   +1 more
   Encore, Forte
   Address
   ========================================================================== */

.contact-role,
.location-address,
.diffuser-meta,
.company-meta,
.client-meta,
.prospect-meta,
.entity-meta,
.field-sub,
.summary-sub,
.help-text,
.form-help,
.small-text {
    color: var(--ea-muted) !important;

    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}


/* ==========================================================================
   STAT CARDS
   ========================================================================== */

.stat-label,
.summary-label {
    font-size: 10px !important;
}

.stat-value {
    color: var(--ea-white) !important;

    font-size: 30px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
}

.summary-value {
    font-size: 16px !important;
}


/* ==========================================================================
   FORMS
   ========================================================================== */

input,
select,
textarea {
    font-size: 15px !important;
    font-weight: 400 !important;
}

input::placeholder,
textarea::placeholder {
    font-size: 15px !important;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

button,
.btn,
.button,
.primary-btn,
.secondary-btn,
.btn-secondary {
    font-size: 14px !important;
    font-weight: 600 !important;
}


/* ==========================================================================
   STATUS BADGES
   ========================================================================== */

.badge,
.status-badge {
    font-size: 10px !important;
    font-weight: 600 !important;
}


/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar-menu a {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

.sidebar-label {
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
}


/* ==========================================================================
   TOP BAR
   ========================================================================== */

.topbar,
.topbar a,
.topbar-user,
.topbar-user strong {
    font-size: 13px !important;
}


/* ==========================================================================
   QUICK ACTION CARDS
   ========================================================================== */

.quick-actions strong,
.quick-action strong,
.action-card strong {
    font-size: 15px !important;
    font-weight: 600 !important;
}

.quick-actions small,
.quick-action small,
.action-card small {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: var(--ea-muted) !important;
}


/* ==========================================================================
   RECENT ACTIVITY
   ========================================================================== */

.activity-subject {
    font-size: 16px !important;
}

.activity-type,
.activity-date,
.activity-meta {
    color: var(--ea-muted) !important;

    font-size: 12px !important;
    font-weight: 400 !important;
}

.activity-details {
    color: var(--ea-text) !important;

    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}


/* ==========================================================================
   EMPTY STATES
   ========================================================================== */

.empty-state,
.empty-location {
    color: var(--ea-muted) !important;

    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 800px) {

    body {
        font-size: 14px !important;
    }

    h1,
    .page-header h1,
    .page-heading h1,
    .account-header h1,
    .client-header h1,
    .prospect-header h1,
    .diffuser-header h1 {
        font-size: 27px !important;
    }

    .header-meta,
    .account-meta,
    .page-description,
    .page-subtitle,
    .header-description,
    .page-header p,
    .page-heading p {
        font-size: 14px !important;
    }

    h2,
    .section-title,
    .section-heading,
    .card-title,
    .panel-title {
        font-size: 18px !important;
    }

    h3,
    .section-title h3,
    .section-header h3 {
        font-size: 16px !important;
    }

    .company-name,
    .client-name,
    .prospect-name,
    .account-name,
    .contact-name,
    .location-name,
    .diffuser-name,
    .entity-name,
    .activity-subject {
        font-size: 15px !important;
    }

    table,
    tbody,
    tr,
    td,
    td strong,
    td b,
    td a {
        font-size: 14px !important;
    }

    .info-value,
    .field-value,
    .summary-value {
        font-size: 14px !important;
    }

    .stat-value {
        font-size: 27px !important;
    }

    input,
    select,
    textarea,
    input::placeholder,
    textarea::placeholder {
        font-size: 14px !important;
    }

    button,
    .btn,
    .button,
    .primary-btn,
    .secondary-btn,
    .btn-secondary {
        font-size: 13px !important;
    }

    .sidebar-menu a {
        font-size: 15px !important;
    }
}


/* ==========================================================================
   21. CRM THEMES
   Dark is the original/default theme.
   Light is a warm luxury grey theme with black text and gold accents.
   ========================================================================== */

html[data-theme="light"] {
    --ea-bg: #e5e2dc !important;
    --ea-sidebar: #d7d3cc !important;

    --ea-panel: #f0ede8 !important;
    --ea-panel-soft: #ddd9d2 !important;
    --ea-panel-light: #e9e6e0 !important;

    --ea-border: #c6c0b7 !important;

    --ea-white: #171717 !important;
    --ea-text: #262626 !important;
    --ea-muted: #66615b !important;

    --ea-gold: #a58a61 !important;
    --ea-gold-hover: #8f744f !important;
}

html[data-theme="light"] .sidebar-label {
    color: #5f5a54 !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: #77716a !important;
}

html[data-theme="light"] tbody tr:hover {
    background: rgba(0, 0, 0, .025) !important;
}

/*
Older dashboard versions use a hard-coded dark background for the
CRM Account Check inputs. Keep those fields consistent in Light mode.
*/
html[data-theme="light"] .crm-check-field input {
    background: var(--ea-panel-soft) !important;
    color: var(--ea-white) !important;
}

/*
A few older page-specific styles use translucent white fills that are
appropriate for Dark mode. Make them subtle black fills in Light mode.
*/
html[data-theme="light"] .import-step {
    background: rgba(0, 0, 0, .018) !important;
}

/* ==========================================================================
   22. DARK THEME ATMOSPHERIC BACKGROUND
   Uses the same image as the login screen while keeping CRM content light.
   ========================================================================== */

html[data-theme="dark"] body {
    position: relative;
    background: #0c0c0c !important;
}

html[data-theme="dark"] body::before {
    content: "";
    position: fixed;
    inset: -12px;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(6, 7, 8, .76), rgba(6, 7, 8, .82)),
        url('../images/login-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px) saturate(.96);
    transform: scale(1.02);
}

html[data-theme="dark"] body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 52% 18%, rgba(165, 138, 97, .055), transparent 34%),
        linear-gradient(90deg, rgba(5, 6, 7, .16), rgba(5, 6, 7, .04) 50%, rgba(5, 6, 7, .20));
}

html[data-theme="dark"] .crm-layout,
html[data-theme="dark"] .dashboard-layout {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

html[data-theme="dark"] .main-area,
html[data-theme="dark"] .page {
    background: transparent !important;
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .crm-topbar {
    background: rgba(12, 12, 12, .88) !important;
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .crm-sidebar {
    background: rgba(17, 17, 17, .92) !important;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .stat-card {
    background-color: rgba(23, 23, 23, .94);
}

@media (max-width: 800px) {
    html[data-theme="dark"] body::before {
        filter: blur(2px) saturate(.96);
    }
}



/* ==========================================================================
   LIGHT THEME STATUS CONTRAST FIX
   ========================================================================== */
html[data-theme="light"] .badge,
html[data-theme="light"] .status-badge {
    color: #423d37 !important;
    border-color: rgba(95, 86, 73, .28) !important;
    background: rgba(80, 72, 62, .055) !important;
}

html[data-theme="light"] .badge-gold,
html[data-theme="light"] .status-badge.warning,
html[data-theme="light"] .status-badge.attention {
    color: #73572f !important;
    border-color: rgba(115, 87, 47, .35) !important;
    background: rgba(165, 138, 97, .11) !important;
}

html[data-theme="light"] .status-badge.good,
html[data-theme="light"] .status-badge.active {
    color: #3f6f4a !important;
    border-color: rgba(63, 111, 74, .30) !important;
    background: rgba(79, 128, 91, .09) !important;
}

html[data-theme="light"] .status-badge.danger,
html[data-theme="light"] .status-badge.error {
    color: #9d3e3e !important;
    border-color: rgba(157, 62, 62, .30) !important;
    background: rgba(166, 95, 95, .08) !important;
}

html[data-theme="light"] .status-badge.muted,
html[data-theme="light"] .status-badge.inactive,
html[data-theme="light"] .status-badge.paused {
    color: #625d56 !important;
    background: rgba(70, 65, 60, .045) !important;
}


/* ==========================================================================
   LIGHT THEME STATUS PILL CONTRAST
   Prospect/status pills use their own classes, separate from .status-badge.
   ========================================================================== */
html[data-theme="light"] .status-pill{
    border-color:rgba(75,68,60,.30) !important;
    background:rgba(255,255,255,.18) !important;
    color:#403a34 !important;
}
html[data-theme="light"] .status-pill.status-new{
    color:#5f5a54 !important;
}
html[data-theme="light"] .status-pill.status-contacted,
html[data-theme="light"] .status-pill.status-conversation{
    color:#426d91 !important;
    border-color:rgba(66,109,145,.32) !important;
    background:rgba(66,109,145,.055) !important;
}
html[data-theme="light"] .status-pill.status-meeting,
html[data-theme="light"] .status-pill.status-trial{
    color:#80652f !important;
    border-color:rgba(128,101,47,.34) !important;
    background:rgba(165,138,97,.07) !important;
}
html[data-theme="light"] .status-pill.status-proposal,
html[data-theme="light"] .status-pill.status-negotiation{
    color:#72572f !important;
    border-color:rgba(114,87,47,.35) !important;
}
html[data-theme="light"] .status-pill.status-won{
    color:#3f754d !important;
    border-color:rgba(63,117,77,.34) !important;
    background:rgba(63,117,77,.055) !important;
}
html[data-theme="light"] .status-pill.status-lost{
    color:#9a4747 !important;
    border-color:rgba(154,71,71,.30) !important;
    background:rgba(154,71,71,.045) !important;
}
