/**
 * ============================================================================
 * SNOOKER PRO THEME - Dark Override CSS
 * ============================================================================
 * This file contains maximum-specificity CSS rules to override the legacy
 * stylesheet.css colors with the new dark snooker theme.
 * 
 * MUST BE LOADED LAST FOR PROPER OVERRIDES!
 * 
 * @version 1.1.0
 * ============================================================================
 */

/* ============================================
   🔥 KILL ALL LEGACY CHEVRONS 🔥
   ============================================ */
.sf-menu > li > a::after,
.sf-menu > li > a::before,
.sf-menu li a::after,
.sf-menu li a::before,
#column-left .sf-menu > li > a::after,
#column-left .sf-menu > li > a::before,
aside .sf-menu > li > a::after,
aside .sf-menu > li > a::before,
.megamenu .sf-menu > li > a::after,
.megamenu .sf-menu > li > a::before,
.snooker-sidemenu .sf-menu > li > a::after,
.snooker-sidemenu .sf-menu > li > a::before {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
}

/* ============================================
   🔥 GLOBAL DARK THEME RESET 🔥
   ============================================ */

html,
body {
    background-color: #0a0a0a !important;
    color: #e5e5e5 !important;
}

/* ============================================
   SIDEBAR MEGAMENU - VERTICAL LAYOUT
   Maximum specificity selectors
   ============================================ */

/* Main container */
html body #column-left .megamenu,
html body #column-left nav.megamenu,
html body aside .megamenu,
html body aside nav.megamenu,
html body #common-home .megamenu,
html body #common-home #column-left .megamenu,
html body #common-home aside .megamenu,
html body .home-sidebar-left .megamenu,
#column-left .megamenu,
#column-left > .megamenu,
aside .megamenu,
.home-sidebar-left .megamenu,
.home-sidebar-left > div > .megamenu {
    background: #1a1a1a !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4) !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* SF-Menu UL container */
html body #column-left .sf-menu,
html body #column-left ul.sf-menu,
html body aside .sf-menu,
html body #common-home .sf-menu,
html body #common-home #column-left .sf-menu,
html body #common-home aside .sf-menu,
html body .home-sidebar-left .sf-menu,
#column-left .sf-menu,
#column-left ul.sf-menu,
aside .sf-menu,
.home-sidebar-left .sf-menu {
    display: block !important;
    width: 100% !important;
    background: #1a1a1a !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    text-align: left !important;
}

/* Menu Items - Vertical Layout */
html body #column-left .sf-menu > li,
html body #column-left ul.sf-menu > li,
html body aside .sf-menu > li,
html body #common-home .sf-menu > li,
html body #common-home #column-left .sf-menu > li,
html body .home-sidebar-left .sf-menu > li,
#column-left .sf-menu > li,
aside .sf-menu > li,
.home-sidebar-left .sf-menu > li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    background: #1a1a1a !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #2d2d2d !important;
    position: relative !important;
}

html body #column-left .sf-menu > li:last-child,
html body aside .sf-menu > li:last-child,
html body #common-home .sf-menu > li:last-child,
#column-left .sf-menu > li:last-child,
aside .sf-menu > li:last-child,
.home-sidebar-left .sf-menu > li:last-child {
    border-bottom: none !important;
}

/* Menu Links - FLEX with proper alignment */
html body #column-left .sf-menu > li > a,
html body #column-left ul.sf-menu > li > a,
html body aside .sf-menu > li > a,
html body #common-home .sf-menu > li > a,
html body #common-home #column-left .sf-menu > li > a,
html body .home-sidebar-left .sf-menu > li > a,
#column-left .sf-menu > li > a,
aside .sf-menu > li > a,
.home-sidebar-left .sf-menu > li > a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    color: #e0e0e0 !important;
    background: #1a1a1a !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: none !important;
    box-sizing: border-box !important;
}

/* Text span - flex grow to push icon right */
html body #column-left .sf-menu > li > a > span,
html body #common-home .sf-menu > li > a > span,
#column-left .sf-menu > li > a > span,
.home-sidebar-left .sf-menu > li > a > span {
    flex: 1 !important;
    text-align: left !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* HOVER STATE - GREEN BACKGROUND */
html body #column-left .sf-menu > li > a:hover,
html body #column-left .sf-menu > li:hover > a,
html body #column-left .sf-menu > li.sfHover > a,
html body aside .sf-menu > li > a:hover,
html body aside .sf-menu > li:hover > a,
html body #common-home .sf-menu > li > a:hover,
html body #common-home .sf-menu > li:hover > a,
html body #common-home .sf-menu > li.sfHover > a,
html body .home-sidebar-left .sf-menu > li > a:hover,
html body .home-sidebar-left .sf-menu > li:hover > a,
#column-left .sf-menu > li > a:hover,
#column-left .sf-menu > li:hover > a,
#column-left .sf-menu > li.sfHover > a,
aside .sf-menu > li > a:hover,
aside .sf-menu > li:hover > a,
.home-sidebar-left .sf-menu > li > a:hover,
.home-sidebar-left .sf-menu > li:hover > a {
    color: #ffffff !important;
    background: #0a6b3a !important;
    padding-left: 24px !important;
}

/* ACTIVE STATE - GOLD */
html body #column-left .sf-menu > li > a.active,
html body aside .sf-menu > li > a.active,
html body #common-home .sf-menu > li > a.active,
#column-left .sf-menu > li > a.active,
aside .sf-menu > li > a.active,
.home-sidebar-left .sf-menu > li > a.active {
    color: #d4af37 !important;
    background: rgba(10, 107, 58, 0.3) !important;
    border-left: 3px solid #d4af37 !important;
}

/* ============================================
   DROPDOWN SUBMENUS
   ============================================ */

html body #column-left .sf-menu .simple_menu,
html body #column-left .sf-menu ul.simple_menu,
html body #column-left .sf-menu .sf-mega,
html body aside .sf-menu .simple_menu,
html body aside .sf-menu .sf-mega,
html body #common-home .sf-menu .simple_menu,
html body #common-home .sf-menu .sf-mega,
#column-left .sf-menu .simple_menu,
#column-left .sf-menu .sf-mega,
aside .sf-menu .simple_menu,
aside .sf-menu .sf-mega,
.home-sidebar-left .sf-menu .simple_menu,
.home-sidebar-left .sf-menu .sf-mega {
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
    margin: 0 !important;
    margin-left: 0 !important;
    background: #1f1f1f !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
    min-width: 280px !important;
    padding: 10px 0 !important;
    z-index: 999999 !important;
}

/* Dropdown items */
html body #column-left .sf-menu .simple_menu li,
html body #column-left .sf-menu .sf-mega li,
html body #common-home .sf-menu .simple_menu li,
html body #common-home .sf-menu .sf-mega li,
#column-left .sf-menu .simple_menu li,
#column-left .sf-menu .sf-mega li,
.home-sidebar-left .sf-menu .simple_menu li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

html body #column-left .sf-menu .simple_menu > li + li,
html body #common-home .sf-menu .simple_menu > li + li,
#column-left .sf-menu .simple_menu > li + li,
.home-sidebar-left .sf-menu .simple_menu > li + li {
    border-top: 1px solid #2a2a2a !important;
}

/* Dropdown links */
html body #column-left .sf-menu .simple_menu li a,
html body #column-left .sf-menu .sf-mega a,
html body #common-home .sf-menu .simple_menu li a,
html body #common-home .sf-menu .sf-mega a,
#column-left .sf-menu .simple_menu li a,
#column-left .sf-menu .sf-mega a,
.home-sidebar-left .sf-menu .simple_menu li a {
    display: block !important;
    padding: 12px 18px !important;
    color: #b0b0b0 !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}

html body #column-left .sf-menu .simple_menu li a:hover,
html body #column-left .sf-menu .sf-mega a:hover,
html body #common-home .sf-menu .simple_menu li a:hover,
html body #common-home .sf-menu .sf-mega a:hover,
#column-left .sf-menu .simple_menu li a:hover,
#column-left .sf-menu .sf-mega a:hover,
.home-sidebar-left .sf-menu .simple_menu li a:hover {
    color: #fff !important;
    background: rgba(10, 107, 58, 0.25) !important;
    padding-left: 24px !important;
}

/* Submenu titles */
html body .sf-menu .submenu_category_title,
html body .sf-menu .submenu_category_title a,
html body .sf-menu .submenu_title,
html body .sf-menu .submenu_title a,
.sf-menu .submenu_category_title,
.sf-menu .submenu_category_title a,
.sf-menu .submenu_title,
.sf-menu .submenu_title a {
    color: #d4af37 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border-bottom: 1px solid #333 !important;
    margin-bottom: 8px !important;
    padding-bottom: 10px !important;
}

/* Mega menu wide */
html body #column-left .sf-menu .sf-mega,
html body #common-home .sf-menu .sf-mega,
#column-left .sf-menu .sf-mega,
.home-sidebar-left .sf-menu .sf-mega {
    min-width: 500px !important;
    width: auto !important;
    padding: 20px !important;
}

/* Arrow icons - Always right aligned, vertically centered */
html body #column-left .sf-menu > li > a i,
html body #column-left .sf-menu > li > a .fa,
html body #common-home .sf-menu > li > a i,
html body #common-home .sf-menu > li > a .fa,
#column-left .sf-menu > li > a i,
#column-left .sf-menu > li > a .fa,
.home-sidebar-left .sf-menu > li > a i,
.home-sidebar-left .sf-menu > li > a .fa {
    flex-shrink: 0 !important;
    width: 16px !important;
    text-align: center !important;
    color: #666 !important;
    font-size: 11px !important;
    margin-left: auto !important;
    align-self: center !important;
    transition: all 0.2s ease !important;
}

html body #column-left .sf-menu > li:hover > a i,
html body #column-left .sf-menu > li:hover > a .fa,
html body #common-home .sf-menu > li:hover > a i,
html body #common-home .sf-menu > li:hover > a .fa,
#column-left .sf-menu > li:hover > a i,
#column-left .sf-menu > li:hover > a .fa,
.home-sidebar-left .sf-menu > li:hover > a i,
.home-sidebar-left .sf-menu > li:hover > a .fa {
    color: #fff !important;
    transform: translateX(3px) !important;
}

/* ============================================
   MOBILE RESPONSIVE - Sidebar full width
   ============================================ */
@media (max-width: 991px) {
    html body #column-left,
    html body aside#column-left,
    html body .home-sidebar-left,
    #column-left,
    .home-sidebar-left {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
        margin: 0 0 24px 0 !important;
    }
    
    html body #column-left .megamenu,
    html body .home-sidebar-left .megamenu,
    #column-left .megamenu,
    .home-sidebar-left .megamenu {
        width: 100% !important;
        border-radius: 12px !important;
    }
    
    html body #column-left .sf-menu > li > a,
    html body .home-sidebar-left .sf-menu > li > a,
    #column-left .sf-menu > li > a,
    .home-sidebar-left .sf-menu > li > a {
        min-height: 52px !important;
        padding: 14px 16px !important;
    }
    
    /* Dropdown on mobile - stack below */
    html body #column-left .sf-menu .simple_menu,
    html body #column-left .sf-menu .sf-mega,
    html body .home-sidebar-left .sf-menu .simple_menu,
    html body .home-sidebar-left .sf-menu .sf-mega,
    #column-left .sf-menu .simple_menu,
    #column-left .sf-menu .sf-mega,
    .home-sidebar-left .sf-menu .simple_menu,
    .home-sidebar-left .sf-menu .sf-mega {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-top: 1px solid #333 !important;
        box-shadow: none !important;
    }
}

/* ============================================
   CATEGORY BOX / PANEL MODULE
   ============================================ */

html body #column-left .box,
html body #column-right .box,
html body aside .box,
#column-left .box,
#column-right .box,
aside .box,
.home-sidebar-left .box {
    background: #1a1a1a !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 24px !important;
}

html body #column-left .box-heading,
html body #column-right .box-heading,
html body aside .box-heading,
#column-left .box-heading,
#column-right .box-heading,
aside .box-heading,
.home-sidebar-left .box-heading {
    background: #252525 !important;
    color: #d4af37 !important;
    padding: 16px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #2d2d2d !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

html body #column-left .box-content,
html body #column-right .box-content,
html body aside .box-content,
#column-left .box-content,
#column-right .box-content,
aside .box-content,
.home-sidebar-left .box-content {
    background: #1a1a1a !important;
    padding: 0 !important;
}

/* List in box */
html body #column-left .box-content ul,
html body #column-right .box-content ul,
#column-left .box-content ul,
#column-right .box-content ul,
.home-sidebar-left .box-content ul {
    background: transparent !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body #column-left .box-content ul li,
html body #column-right .box-content ul li,
#column-left .box-content ul li,
#column-right .box-content ul li,
.home-sidebar-left .box-content ul li {
    background: transparent !important;
    border-bottom: 1px solid #2a2a2a !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body #column-left .box-content ul li:last-child,
html body #column-right .box-content ul li:last-child,
#column-left .box-content ul li:last-child,
#column-right .box-content ul li:last-child,
.home-sidebar-left .box-content ul li:last-child {
    border-bottom: none !important;
}

html body #column-left .box-content ul li a,
html body #column-right .box-content ul li a,
#column-left .box-content ul li a,
#column-right .box-content ul li a,
.home-sidebar-left .box-content ul li a {
    display: block !important;
    padding: 14px 18px !important;
    color: #e0e0e0 !important;
    background: transparent !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

html body #column-left .box-content ul li a:hover,
html body #column-right .box-content ul li a:hover,
#column-left .box-content ul li a:hover,
#column-right .box-content ul li a:hover,
.home-sidebar-left .box-content ul li a:hover {
    color: #fff !important;
    background: #0a6b3a !important;
    padding-left: 24px !important;
}

/* ============================================
   LIST GROUP
   ============================================ */

html body .list-group,
.list-group,
#column-left .list-group,
#column-right .list-group,
aside .list-group {
    background: #1a1a1a !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 24px !important;
}

html body .list-group-item,
.list-group-item,
#column-left .list-group-item,
aside .list-group-item,
a.list-group-item {
    background: #1a1a1a !important;
    border: none !important;
    border-bottom: 1px solid #2a2a2a !important;
    color: #e0e0e0 !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
}

html body .list-group-item:last-child,
.list-group-item:last-child {
    border-bottom: none !important;
}

html body .list-group-item:hover,
html body .list-group-item.active,
html body a.list-group-item:hover,
html body a.list-group-item.active,
.list-group-item:hover,
.list-group-item.active,
a.list-group-item:hover,
a.list-group-item.active {
    color: #fff !important;
    background: #0a6b3a !important;
    padding-left: 24px !important;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.product-thumb,
.product-card,
.product-layout .product-thumb {
    background: #1a1a1a !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.product-thumb:hover,
.product-card:hover {
    border-color: #0a6b3a !important;
    box-shadow: 0 8px 30px rgba(10, 107, 58, 0.15) !important;
}

.product-thumb .caption,
.product-thumb .product-info {
    background: #1a1a1a !important;
    padding: 16px !important;
}

.product-thumb h4,
.product-thumb h4 a,
.product-thumb .name,
.product-thumb .name a {
    color: #fff !important;
    font-size: 15px !important;
}

.product-thumb h4 a:hover,
.product-thumb .name a:hover {
    color: #d4af37 !important;
}

.product-thumb .price,
.price-new,
.product-price {
    color: #22c55e !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.price-old {
    color: #666 !important;
    text-decoration: line-through !important;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn,
button,
input[type="submit"] {
    background: #0a6b3a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    background: #085c32 !important;
    transform: translateY(-1px) !important;
}

.btn-primary {
    background: #0a6b3a !important;
}

.btn-default {
    background: #333 !important;
}

.btn-danger {
    background: #dc2626 !important;
}

/* ============================================
   FORMS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select,
.form-control {
    background: #1a1a1a !important;
    border: 1px solid #404040 !important;
    color: #e5e5e5 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    border-color: #0a6b3a !important;
    box-shadow: 0 0 0 3px rgba(10, 107, 58, 0.2) !important;
    outline: none !important;
}

label {
    color: #d4d4d4 !important;
}

/* ============================================
   TABLES
   ============================================ */

table,
.table {
    background: transparent !important;
    color: #e5e5e5 !important;
}

.table th,
.table td {
    border-color: #333 !important;
    background: transparent !important;
}

.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
    background: #252525 !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #fff !important;
}

a {
    color: #e5e5e5 !important;
    text-decoration: none !important;
}

a:hover {
    color: #d4af37 !important;
}

/* ============================================
   FOOTER
   ============================================ */

footer,
#footer,
.footer {
    background: #0f0f0f !important;
    color: #a3a3a3 !important;
    border-top: 1px solid #222 !important;
}

footer a {
    color: #888 !important;
}

footer a:hover {
    color: #d4af37 !important;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
}

.breadcrumb > li + li::before {
    color: #666 !important;
}

.breadcrumb > li > a {
    color: #a3a3a3 !important;
}

.breadcrumb > li > a:hover {
    color: #0a6b3a !important;
}

.breadcrumb > .active {
    color: #d4d4d4 !important;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination > li > a,
.pagination > li > span {
    background: #1a1a1a !important;
    border-color: #333 !important;
    color: #a3a3a3 !important;
}

.pagination > li > a:hover,
.pagination > .active > a {
    background: #0a6b3a !important;
    border-color: #0a6b3a !important;
    color: #fff !important;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border-radius: 8px !important;
    border: none !important;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.15) !important;
    color: #ef4444 !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
}

.alert-info {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
}

/* ============================================
   PANELS
   ============================================ */

.panel,
.panel-default {
    background: #1a1a1a !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 16px !important;
}

.panel-heading {
    background: #252525 !important;
    color: #d4af37 !important;
    border-bottom: 1px solid #2d2d2d !important;
}

.panel-body {
    background: #1a1a1a !important;
}

/* ============================================
   WELL
   ============================================ */

.well {
    background: #1a1a1a !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 12px !important;
}

/* ============================================
   MODAL
   ============================================ */

.modal-content {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 16px !important;
}

.modal-header {
    background: #252525 !important;
    border-bottom: 1px solid #333 !important;
}

.modal-header .close {
    color: #fff !important;
}

.modal-title {
    color: #fff !important;
}

.modal-body {
    background: #1a1a1a !important;
    color: #e5e5e5 !important;
}

.modal-footer {
    background: #1a1a1a !important;
    border-top: 1px solid #333 !important;
}

/* ============================================
   DROPDOWN
   ============================================ */

.dropdown-menu {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
}

.dropdown-menu > li > a {
    color: #a3a3a3 !important;
    padding: 10px 16px !important;
}

.dropdown-menu > li > a:hover {
    color: #fff !important;
    background: rgba(10, 107, 58, 0.2) !important;
}

/* ============================================
   TABS
   ============================================ */

.nav-tabs {
    border-bottom-color: #333 !important;
}

.nav-tabs > li > a {
    color: #a3a3a3 !important;
    background: transparent !important;
    border: none !important;
}

.nav-tabs > li > a:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.05) !important;
    border: none !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: #d4af37 !important;
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-bottom-color: #1a1a1a !important;
}

.tab-content {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-top: none !important;
    padding: 20px !important;
}
