/* 
 * Peplo CRM - Obsidian Professional Master
 * STRICT CONSTRAINTS: No White (#FFFFFF), No Dotted Borders.
 */

:root {
    --bg-base: #000000;           /* Pure Black background */
    --bg-surface: #0f0f0f;        /* Deep Charcoal for cards/sidebars */
    --bg-input: #1a1a1a;          /* Lighter Charcoal for inputs */
    --accent-red: #d32f2f;        /* Solid Blood Red for actions/icons */
    --text-main: #e0e0e0;         /* Off-white for readability */
    --text-dim: #757575;          /* Dim grey for secondary labels */
    --border-solid: #1f1f1f;      /* Solid hairline border */
}

/* 1. ELIMINATE ALL WHITE & DASHED BORDERS */
body.dark-theme, 
body.dark-theme #wrapper, 
body.dark-theme #content,
body.dark-theme .content,
body.dark-theme .panel_s,
body.dark-theme .panel-body,
body.dark-theme .card,
body.dark-theme .widget,
body.dark-theme .modal-content,
body.dark-theme .dataTables_wrapper { 
    background-color: var(--bg-base) !important; 
    color: var(--text-main) !important; 
    border: 1px solid var(--border-solid) !important;
}

/* 2. SIDEBAR - CRIMSON RED ACTIVE STATE */
body.dark-theme #side-menu, 
body.dark-theme .sidebar { 
    background-color: var(--bg-surface) !important; 
    border-right: 1px solid var(--border-solid) !important; 
}
body.dark-theme #side-menu li a { color: var(--text-main) !important; }
body.dark-theme #side-menu li a i { color: var(--accent-red) !important; }
body.dark-theme #side-menu li.active > a,
body.dark-theme #side-menu li.active > a i { 
    color: var(--accent-red) !important; 
    font-weight: bold !important;
}

/* 3. TABLE HEADERS - CHARCOAL & CRIMSON */
body.dark-theme .table thead th { 
    background-color: var(--bg-surface) !important; 
    color: var(--accent-red) !important; 
    font-weight: bold !important;
    text-transform: uppercase !important;
    border: 1px solid var(--border-solid) !important;
}
body.dark-theme .table tbody td { 
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-solid) !important; 
    color: var(--text-main) !important;
}

/* 4. INPUTS & SEARCHBOXES */
body.dark-theme input.form-control,
body.dark-theme select.form-control,
body.dark-theme textarea.form-control,
body.dark-theme .input-group-addon,
body.dark-theme .dataTables_filter input { 
    background-color: var(--bg-input) !important; 
    border: 1px solid var(--border-solid) !important; 
    color: var(--text-main) !important;
}

/* 5. TOP NAVBAR - FORCED RED ICONS */
body.dark-theme #header { 
    background-color: var(--bg-base) !important; 
    border-bottom: 1px solid var(--border-solid) !important; 
}
body.dark-theme .navbar-nav > li > a i,
body.dark-theme .navbar-right li a i,
body.dark-theme #top_search_button i { 
    color: var(--accent-red) !important; 
}

/* DASHBOARD CARDS SOLID BACKGROUND */
body.dark-theme .stats-setup { 
    background-color: var(--bg-surface) !important; 
    border: 1px solid var(--border-solid) !important; 
}

/* USER INFO RE-SYNC */
body.dark-theme .menu-user-info { background: var(--bg-surface) !important; border-bottom: 1px solid var(--border-solid) !important; }

/* FIXING PAGINATION */
body.dark-theme .pagination > li > a { background-color: var(--bg-surface) !important; border: 1px solid var(--border-solid) !important; }
body.dark-theme .pagination > .active > a { background-color: var(--accent-red) !important; border-color: var(--accent-red) !important; }

/* ELIMINATE ALL DASHED/DOTTED LINES GLOBALLY */
body.dark-theme * { border-style: solid !important; }
