/* ==========================================
   MODERN THEME - CLEAN & SOFT DESIGN
   ========================================== */

:root {
    --primary-modern: #d80606;
    --primary-gradient: linear-gradient(135deg, #fd0202 0%, #df0000 100%);
    --bg-clean: #fefefe;
    --border-light: #f1f5f9;
    --text-clean: #334155;
    --transition-smooth: all 0.3s ease;
    --border-radius-modern: 16px;
    --border-radius-card: 20px;
    --border-radius-small: 8px;
    --border-radius-minimal: 6px;
}

/* MODERN FONT FAMILY */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    letter-spacing: -0.01em !important;
    background: #fefcfc !important;
}

/* PAGE BACKGROUND */
html, body {
    background: #fefcfc !important;
}

/* FORCE BACKGROUND FOR ALL CONTAINERS */
html {
    background-color: #fefcfc !important;
}

body {
    background-color: #fefcfc !important;
}

.container-fluid, .container, main, #main, .wrapper, .page-wrapper {
    background: #fefcfc !important;
}

/* Override any other background colors */


/* FORCE BACKGROUND FOR ENTIRE VIEWPORT */
html {
    min-height: 100vh !important;
    width: 100% !important;
}

body {
    min-height: 100vh !important;
    width: 100% !important;
}

/* ENSURE FULL WIDTH COVERAGE */
body, html, #root, #app, .app {
    background: #fefcfc !important;
    background-color: #fefcfc !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* TARGET COMMON WRAPPER CLASSES */
.site-wrapper, .page-content, .main-wrapper, .content-wrapper {
    background: #fefcfc !important;
    background-color: #fefcfc !important;
}

/* TARGET BG-COLOR CLASS */
.bg-color {
    background: #fefcfc !important;
    background-color: #fefcfc !important;
}

/* TARGET ALL BACKGROUND RELATED CLASSES */
.bg-primary, .bg-secondary, .bg-info, .bg-warning, .bg-danger, .bg-success, .bg-light, .bg-dark {
    background: #fefcfc !important;
    background-color: #fefcfc !important;
}

/* HEADINGS WITH MODERN FONT */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
}

/* MODERN CARDS WITH SOFT ROUNDED CORNERS */
.table-shadow {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--border-radius-minimal) !important;
    background: white !important;
    margin-bottom: 1.5rem !important;
    transition: var(--transition-smooth) !important;
    overflow: hidden !important;
}

.table-shadow:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* CLEAN TABLE STYLING */
.table-lotto {
    border-collapse: collapse !important;
    background: white !important;
    border: none !important;
}

.table-lotto th,
.table-lotto td {
    border: none !important;
    border-bottom: 1px solid var(--border-light) !important;
    padding: 12px 8px !important;
}

.table-lotto th {
    background: var(--bg-clean) !important;
    font-weight: 500 !important;
    color: var(--text-clean) !important;
    font-size: 14px !important;
}

/* MODERN ROUNDED BORDERS */
.br-10, .bblr-10, .bbrr-10 {
    border-radius: var(--border-radius-minimal) !important;
}

.bg-white {
    background: white !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border-radius: var(--border-radius-card) !important;
    transition: var(--transition-smooth) !important;
}

.bg-white:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px) !important;
}

/* CLEAN HEADER - MINIMAL DESIGN */
.sticky-header {
    background: var(--primary-gradient) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 !important;
    border: none !important;
}

.sticky-header div {
    padding: 10px 16px !important;
    gap: 6px !important;
}

.sticky-header a {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: var(--border-radius-small) !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: var(--transition-smooth) !important;
    font-family: inherit !important;
}

.sticky-header a:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* MODERN CONTENT HEADERS */
.bg-linear-gradient {
    background: linear-gradient(135deg, #c00 50%, #c00 100%) !important;
    border-radius: 0 !important;
    padding: 4px 0 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
    color: #7f1d1d !important;
}

/* Specific styling for h3 headers */
h3.bg-linear-gradient {
    background: linear-gradient(135deg, #c00 50%, #c00 100%) !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    font-family: inherit !important;
    color: #7f1d1d !important;
}

h3.bg-linear-gradient:hover {
    color: #fafafa !important;
}

.tab-btn {
    background: none !important;
    border: none !important;
    border-radius: var(--border-radius-small) !important;
    padding: 10px 18px !important;
    margin: 0 2px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: var(--transition-smooth) !important;
    color: white !important;
    font-family: inherit !important;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px) !important;
    color: white !important;
}

/* MINIMAL LINKS - NO HEAVY STYLING */
.list-link, .color-content {
    color: var(--primary-modern) !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    transition: var(--transition-smooth) !important;
}

.list-link:hover, .color-content:hover {
    color: #2563eb !important;
    text-decoration: none !important;
}

/* WHITE LINKS WITH RED HOVER EFFECT */
.link-white.list-group-title {
    color: white !important;
    text-decoration: none !important;
    transition: var(--transition-smooth) !important;
}

.link-white.list-group-title:hover {
    color: #faf8f8 !important;
    text-decoration: none !important;
}

/* MODERN SIDEBAR NAVIGATION */
.nav-bar {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: var(--border-radius-card) !important;
    position: relative !important;
    z-index: 9999 !important;
}

.sidebar-header {
    background: var(--primary-gradient) !important;
    color: white !important;
    padding: 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sidebar-header img {
    filter: brightness(1.1) !important;
}

.sidebar-header span {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13px !important;
    font-weight: 300 !important;
}

.sidebar-close {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 20px !important;
    transition: var(--transition-smooth) !important;
}

.sidebar-close:hover {
    color: white !important;
    transform: scale(1.1) !important;
}

/* NAVIGATION ITEMS */
.nav-list {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    position: relative !important;
    z-index: 9998 !important;
}

.nav-items {
    border-bottom: 1px solid rgba(59, 130, 246, 0.08) !important;
    margin: 0 !important;
    transition: var(--transition-smooth) !important;
    position: relative !important;
}

.nav-items:hover {
    background: rgba(59, 130, 246, 0.05) !important;
}

.nav-links {
    color: #475569 !important;
    text-decoration: none !important;
    padding: 12px 20px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: var(--transition-smooth) !important;
}

.nav-links:hover {
    color: var(--primary-modern) !important;
    background: rgba(59, 130, 246, 0.08) !important;
    padding-left: 24px !important;
}

.nav-links i {
    width: 20px !important;
    text-align: center !important;
    margin-right: 8px !important;
    color: var(--primary-modern) !important;
    opacity: 0.7 !important;
}

.nav-links:hover i {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* DROPDOWN STYLING */
.dropdown-list {
    background: rgba(248, 250, 252, 0.95) !important;
    border-top: 1px solid rgba(59, 130, 246, 0.1) !important;
    padding: 0 !important;
    position: absolute !important;
    left: 0 !important;
    top: 100% !important;
    width: 100% !important;
    z-index: 999999 !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 0 8px 8px !important;
}

.dropdown-items {
    border-bottom: 1px solid rgba(59, 130, 246, 0.05) !important;
}

.dropdown-links {
    color: #64748b !important;
    text-decoration: none !important;
    padding: 10px 20px 10px 48px !important;
    display: block !important;
    font-size: 13px !important;
    transition: var(--transition-smooth) !important;
    position: relative !important;
    z-index: 999999 !important;
    cursor: pointer !important;
}

.dropdown-links:hover {
    color: var(--primary-modern) !important;
    background: rgba(59, 130, 246, 0.06) !important;
    padding-left: 52px !important;
}

/* DROPDOWN ARROWS */
.nav-items-dropdown, .sidebar-dropdown {
    color: rgba(59, 130, 246, 0.6) !important;
    transition: var(--transition-smooth) !important;
}

.nav-items:hover .nav-items-dropdown,
.nav-items:hover .sidebar-dropdown {
    color: var(--primary-modern) !important;
    transform: rotate(180deg) !important;
}

/* SIDEBAR OVERLAY FIX */
.sidebar-overlay {
    z-index: 9997 !important;
}

/* ENSURE NAV ELEMENTS ARE ON TOP */
.nav-bar, .navigation, header {
    z-index: 999998 !important;
    position: relative !important;
}

/* DROPDOWN CONTAINER */
.nav-items:hover .dropdown-list {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* MAIN CONTENT BEHIND SIDEBAR */
.container, main, #main-content {
    position: relative !important;
    z-index: 1 !important;
}

/* ENSURE NAVIGATION IS ON TOP */
.nav-bar, .navigation, header, .header {
    z-index: 999998 !important;
    position: relative !important;
}

/* DROPDOWN VISIBILITY CONTROL */
.nav-items:hover .dropdown-list {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* HIDE DROPDOWN BY DEFAULT */
.dropdown-list {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* OVERRIDE ANY POTENTIAL Z-INDEX CONFLICTS */
.nav-items .dropdown-list,
.nav-items .dropdown-links,
.sidebar .dropdown-list,
.sidebar .dropdown-links {
    z-index: 999999 !important;
    position: relative !important;
}

.nav-items:hover .dropdown-list {
    position: absolute !important;
    z-index: 999999 !important;
}

/* CLEAN SCROLL BUTTON - SUBTLE */
.scroll-to-top {
    background: var(--primary-modern) !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 14px !important;
    transition: var(--transition-smooth) !important;
}

.scroll-to-top:hover {
    background: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

/* REMOVE ALL UNNECESSARY BORDERS AND FRAMES */
.container, .row, .col {
    border: none !important;
    box-shadow: none !important;
}

/* CLEAN SPACING - MORE BREATHING ROOM */
.m-t-15 { margin-top: 20px !important; }
.m-b-15 { margin-bottom: 20px !important; }

/* LIST GROUP WHITE STYLING */
.list-group {
    background: white !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--border-radius-minimal) !important;
}

.list-group-custom {
    background: white !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--border-radius-minimal) !important;
}

.list-group-item {
    background: white !important;
    border-bottom: 1px solid var(--border-light) !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
}

/* OVERFLOW HIDDEN CLASS */
.overflow-hidden {
    overflow: hidden !important;
}
.p-t-10 { padding-top: 16px !important; }
.p-b-10 { padding-bottom: 16px !important; }

/* SUBTLE HIGHLIGHTS ONLY WHEN NEEDED */
.bg-highlight-row {
    background: #f8fafc !important;
    border: none !important;
}

/* RESPONSIVE - KEEP IT CLEAN ON MOBILE */
@media (max-width: 768px) {
    .sticky-header div {
        padding: 8px 12px !important;
        gap: 4px !important;
    }
    
    .sticky-header a {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
    
    .tab-btn {
        padding: 6px 12px !important;
        margin: 0 2px !important;
        font-size: 12px !important;
    }
}