/*
   OIPDC PROFESSIONAL BRANDING - HIGH SPECIFICITY
   Targeting Frappe's internal structure directly
*/

/* 1. Root & Theme Variables */
:root, [data-theme="light"], body {
    --primary-color: #0078C1 !important;
    --primary: #0078C1 !important;
    --text-color: #000000 !important;
    --navbar-bg: #ffffff !important;
    --navbar-fg: #000000 !important;
    --sidebar-bg: #f8f9fa !important;
    --sidebar-fg: #000000 !important;
    --oipdc-blue: #0078C1;
    --oipdc-green: #38A843;
}

/* 2. Navbar Force Overrides */
html body .navbar,
html body .navbar.navbar-default,
html body .navbar.navbar-fixed-top {
    background-color: #ffffff !important;
    border-bottom: 2px solid #0078C1 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

/* Navbar Icons & Text */
html body .navbar .navbar-brand,
html body .navbar .nav-link,
html body .navbar .navbar-link,
html body .navbar svg,
html body .navbar i,
html body .navbar .icon {
    color: #000000 !important;
    fill: #000000 !important;
    stroke: #000000 !important;
}

/* 3. Sidebar Force Overrides */
html body .layout-side-section,
html body .body-sidebar,
html body .standard-sidebar {
    background-color: #f8f9fa !important;
}

html body .sidebar-item-label,
html body .standard-sidebar .sidebar-item-container span {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Black Icons in Sidebar */
html body .sidebar-item-icon svg,
html body .sidebar-item-icon i,
html body .sidebar-item-container .icon,
html body .sidebar-item-container svg {
    stroke: #000000 !important;
    fill: #000000 !important;
    color: #000000 !important;
}

/* Sidebar Active State */
html body .sidebar-item-container.active,
html body .sidebar-item-container:hover {
    background-color: #ffffff !important;
    border-left: 4px solid #0078C1 !important;
}

/* 4. Desktop Widgets */
html body .widget,
html body .card {
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    border: 1px solid #ebebeb !important;
}

html body .widget .widget-title,
html body .widget-head .widget-label {
    color: #0078C1 !important;
    font-weight: 700 !important;
}

/* Success colors (Green) */
html body .number-widget .number,
html body .indicator.green {
    color: #38A843 !important;
}

/* 5. Buttons */
html body .btn-primary {
    background-color: #0078C1 !important;
    border-color: #0078C1 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

html body .btn-primary:hover {
    background-color: #005fa3 !important;
}
