/* TIRUPATI ENTERPRISES - GLOBAL COLOR SCHEME ENFORCEMENT */
/* Lime: #d3df37 | Pure Black: #000000 */

:root {
    --tirupati-lime: #d3df37 !important;
    --tirupati-black: #000000 !important;
}

/* GLOBAL COLOR OVERRIDES - HIGHEST PRIORITY */

/* Primary Colors */
.text-primary, .btn-primary, .bg-primary, .border-primary,
.badge-primary, .alert-primary, .list-group-item-primary {
    color: #d3df37 !important;
    /* background-color: #d3df37 !important; */
    border-color: #d3df37 !important;
}

/* Button Primary */
.btn-primary {
    background-color: #d3df37 !important;
    border-color: #d3df37 !important;
    color: #000000 !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #b8c42f !important;
    border-color: #b8c42f !important;
    color: #000000 !important;
}

/* Text Colors */
.text-dark, .text-black {
    color: #000000 !important;
}

/* Icons */
.text-primary i, .bg-primary i, 
[style*="color: #d3df37"] i,
[style*="background: #d3df37"] i {
    color: #000000 !important;
}

/* Bootstrap Component Overrides */
.navbar-brand, .nav-link, .dropdown-item {
    color: inherit !important;
}

.card-title, .card-text, .list-group-item {
    color: inherit !important;
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: #d3df37 !important;
    box-shadow: 0 0 0 0.25rem rgba(211, 223, 55, 0.25) !important;
}

/* Badges */
.badge {
    background-color: #d3df37 !important;
    color: #000000 !important;
}

/* Alerts */
.alert-primary {
    background-color: rgba(211, 223, 55, 0.1) !important;
    border-color: #d3df37 !important;
    color: #000000 !important;
}

/* Progress Bars */
.progress-bar {
    background-color: #d3df37 !important;
}

/* Links */
a.text-primary, .text-primary a {
    color: #d3df37 !important;
}

a.text-primary:hover, .text-primary a:hover {
    color: #b8c42f !important;
}

/* Tables */
.table-primary {
    background-color: rgba(211, 223, 55, 0.1) !important;
    border-color: #d3df37 !important;
}

/* Pagination */
.page-link {
    color: #d3df37 !important;
}

.page-item.active .page-link {
    background-color: #d3df37 !important;
    border-color: #d3df37 !important;
    color: #000000 !important;
}

/* Dropdowns */
.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(211, 223, 55, 0.1) !important;
    color: #000000 !important;
}

/* Modals */
.modal-header {
    border-bottom-color: #d3df37 !important;
}

.modal-footer {
    border-top-color: #d3df37 !important;
}

/* Tabs */
.nav-tabs .nav-link.active {
    color: #d3df37 !important;
    border-color: #d3df37 #d3df37 transparent !important;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    color: #d3df37 !important;
    background-color: rgba(211, 223, 55, 0.1) !important;
}

/* Carousel */
.carousel-indicators [data-bs-target] {
    background-color: #d3df37 !important;
}

/* Spinners */
.spinner-border.text-primary {
    color: #d3df37 !important;
}

/* FORCE OVERRIDES FOR INLINE STYLES */
[style*="color: #007bff"], [style*="color:#007bff"],
[style*="color: blue"], [style*="color:blue"],
[style*="color: primary"], [style*="color:primary"] {
    color: #d3df37 !important;
}

[style*="background: #007bff"], [style*="background:#007bff"],
[style*="background-color: #007bff"], [style*="background-color:#007bff"] {
    background-color: #d3df37 !important;
}

[style*="border-color: #007bff"], [style*="border-color:#007bff"] {
    border-color: #d3df37 !important;
}

/* ADMIN PANEL SPECIFIC */
.admin-panel .btn-primary,
.admin-panel .bg-primary,
.admin-panel .text-primary {
    background-color: #d3df37 !important;
    color: #000000 !important;
    border-color: #d3df37 !important;
}

/* CUSTOM COMPONENT OVERRIDES */
.price-calculator-page .bg-primary,
.price-calculator-page .btn-primary,
.price-calculator-page .text-primary {
    background-color: #d3df37 !important;
    color: #000000 !important;
    border-color: #d3df37 !important;
}

/* HEADER SPECIFIC */
.tirupati-header .text-primary,
.tirupati-header .bg-primary,
.tirupati-header [style*="#d3df37"] {
    color: #d3df37 !important;
    /* background-color: #d3df37 !important; */
}

/* FOOTER SPECIFIC */
footer .text-primary,
footer .bg-primary {
    color: #d3df37 !important;
    /* background-color: #d3df37 !important; */
}

/* CARD COMPONENTS */
.card .text-primary,
.card .bg-primary {
    color: #d3df37 !important;
    /* background-color: #d3df37 !important; */
}

/* ENSURE BLACK TEXT ON LIME BACKGROUNDS */
[style*="background: #d3df37"],
[style*="background-color: #d3df37"],
.bg-primary {
    color: #000000 !important;
}

[style*="background: #d3df37"] *,
[style*="background-color: #d3df37"] *,
.bg-primary * {
    color: #000000 !important;
}

/* RESPONSIVE OVERRIDES */
@media (max-width: 768px) {
    .btn-primary {
        background-color: #d3df37 !important;
        color: #000000 !important;
    }
}

/* REMOVE BODY/HTML DEFAULT SPACING */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* HEADER STYLING - BLACK BACKGROUND WITH WHITE TEXT */
.tirupati-header,
.tirupati-header .top-section,
.tirupati-header .navbar,
.tirupati-header .navbar-nav,
.tirupati-header .navbar-brand,
.tirupati-header .nav-link,
.header-section,
.top-header,
.navigation-section {
    background-color: #000000 !important;
    color: white !important;
    z-index: 1050 !important;
    position: relative !important;
    margin: 0 !important;
    padding-top: 0 !important;
}

/* PRODUCTION GRADE HEADER POSITIONING */
.tirupati-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

/* ADJUST MAIN CONTENT FOR FIXED HEADER */
main {
    padding-top: 120px !important;
}

.main-no-padding {
    padding-top: 120px !important;
}

/* Force override any lime background in header */
.tirupati-header *:not(.btn):not([style*="background: #d3df37"]):not([style*="background-color: #d3df37"]) {
    background-color: transparent !important;
}

.tirupati-header .top-section,
.tirupati-header .navbar {
    background-color: #000000 !important;
}

.tirupati-header .navbar-brand,
.tirupati-header .nav-link,
.tirupati-header span,
.tirupati-header a,
.tirupati-header .text-dark,
.tirupati-header .text-black,
.tirupati-header .top-section *,
.tirupati-header .navbar *,
.top-header *,
.navigation-section * {
    color: white !important;
}

/* Force white text with maximum specificity */
.tirupati-header .top-section span.fw-bold,
.tirupati-header .navbar-brand span,
.tirupati-header .nav-link,
.tirupati-header .top-section .d-flex span {
    color: white !important;
    opacity: 1 !important;
}

/* Header icons must be lime color */
.tirupati-header i,
.tirupati-header .fas,
.tirupati-header .fa {
    color: #d3df37 !important;
}

/* Logo enhancement */
.tirupati-header img {
    filter: brightness(1.1) contrast(1.2) !important;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-link:hover,
.nav-link:focus {
    color: #d3df37 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.header-section .btn-outline-primary {
    background-color: transparent !important;
    color: white !important;
    border-color: white !important;
}

.header-section .btn-outline-primary:hover {
    background-color: white !important;
    color: #000000 !important;
}

/* Z-INDEX LAYERING FIX */
.sticky-top {
    z-index: 1040 !important;
}

.navbar-fixed-top,
.navbar-sticky-top,
.fixed-top {
    z-index: 1050 !important;
}

/* HEADER VERTICAL ALIGNMENT FIX */
.tirupati-header .top-section {
    min-height: 70px !important;
}

.tirupati-header .top-section .container {
    height: 100% !important;
}

.tirupati-header .top-section .row {
    height: 100% !important;
    align-items: center !important;
}

.tirupati-header .top-section .col-md-3,
.tirupati-header .top-section .col-md-6 {
    display: flex !important;
    align-items: center !important;
}

.tirupati-header .top-section .col-md-3:last-child {
    justify-content: flex-end !important;
}

.tirupati-header .top-section .col-md-6 {
    justify-content: center !important;
}

.tirupati-header .top-section .d-flex {
    align-items: center !important;
}

/* IMPORTANT: Override any CSS framework defaults */
* {
    /* --bs-primary: #d3df37 !important; */
    --bs-primary-rgb: 211, 223, 55 !important;
}