/* ============================================================
   TrustEdge Modern - Dark Theme Override
   ============================================================
   This file ONLY contains overrides - survives WiseCP updates.
   Load AFTER wisecp.css and theme-default.css
   
   Color Palette:
   - Background:     #020617 (near black)
   - Surface:        #111827 (dark slate)
   - Surface-hover:  #1e293b (slate)
   - Border:         #1f2937 (gray-800)
   - Text primary:   #e5e7eb (gray-200)
   - Text secondary: #cbd5e1 (slate-300)
   - Text muted:     #9ca3af (gray-400)
   - Accent:         #3b82f6 (blue-500)
   - Accent light:   #60a5fa (blue-400)
   ============================================================ */

/* ===========================================
   SECTION 1: CLIENT PANEL INFO BAR (mpanelinfo)
   The "Dear [Name] Welcome!" bar - CRITICAL FIX
   =========================================== */

/* Force mpanelinfo to sit BELOW navigation, not overlap */
.mpanelinfo {
    clear: both !important;           /* Clear all floats above */
    float: none !important;           /* Remove float - use block */
    display: block !important;
    width: 100% !important;
    height: auto !important;          /* Auto height for content */
    min-height: 50px !important;
    line-height: 1.5 !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 50 !important;
    
    /* Dark theme colors */
    background-color: #0f172a !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #cbd5e1 !important;
    font-size: 14px !important;
    border-bottom: 1px solid #1f2937 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* Client area specific */
#muspanel .mpanelinfo,
#fullwidth .mpanelinfo,
.header .mpanelinfo {
    background-color: #0f172a !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* Ensure text inside mpanelinfo is readable */
.mpanelinfo span,
.mpanelinfo a,
.mpanelinfo div {
    color: #cbd5e1 !important;
}
.mpanelinfo a:hover {
    color: #60a5fa !important;
}

/* Fix the "Last login IP" and right-side elements */
.mpanelinfo .mpanelright-info,
.mpanelinfo .lastlogin,
.mpanelinfo [class*="right"],
.mpanelinfo [class*="login"] {
    color: #9ca3af !important;
    float: right !important;
    margin-left: 20px !important;
    white-space: nowrap !important;
}

/* Shopping cart in header */
.mpanelinfo #sepeticon,
.mpanelinfo .basket-icon,
.mpanelinfo [class*="cart"],
.mpanelinfo [class*="sepet"] {
    color: #60a5fa !important;
}

/* ===========================================
   SECTION 2: HEADER & NAVIGATION - Layout Fix
   =========================================== */

/* Ensure header container clears properly */
#fullwidth {
    position: relative !important;
    overflow: visible !important;
}

/* The fullwidth header bar */
.fullwidthhead {
    position: relative !important;
    z-index: 100 !important;
    clear: both !important;
    width: 100% !important;
    background-color: #0b1220 !important;
    background-image: none !important;
    border-bottom: 1px solid #1f2937 !important;
}

/* Navigation menu container */
#fullwidth .menu,
.menu {
    position: relative !important;
    z-index: 90 !important;
    background-color: #0f172a !important;
    background-image: none !important;
}

/* Menu color overlay - hide it */
.menucolor {
    display: none !important;
}

/* Clear after menu to ensure mpanelinfo sits below */
#fullwidth .menu::after,
.fullwidthhead::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Top utility bar (.head) */
#fullwidth .head {
    background-color: #0b1220 !important;
    border-bottom: 1px solid #1f2937 !important;
    color: #9ca3af !important;
}
#fullwidth .head a {
    color: #9ca3af !important;
}
#fullwidth .head a:hover {
    color: #60a5fa !important;
    background-color: rgba(59,130,246,0.1) !important;
}

/* Header buttons area */
.headbutonlar a {
    color: #cbd5e1 !important;
}
.headbutonlar a:hover {
    color: #60a5fa !important;
}
.headbutonlar .borderedbtn {
    border: 1px solid rgba(59,130,246,0.4) !important;
    color: #60a5fa !important;
    background-color: rgba(59,130,246,0.08) !important;
    border-radius: 0.5rem !important;
}
.headbutonlar .borderedbtn:hover {
    background-color: rgba(59,130,246,0.15) !important;
    border-color: rgba(59,130,246,0.6) !important;
}

/* ===========================================
   SECTION 3: MAIN MENU STYLING
   =========================================== */

/* Top-level menu links */
.menu li a,
.menu ul li a {
    color: #cbd5e1 !important;
    border-bottom: 2px solid transparent !important;
}
.menu li a:hover,
.menu li:hover > a {
    color: #60a5fa !important;
    background-color: rgba(59,130,246,0.1) !important;
    border-bottom-color: #60a5fa !important;
}

/* Dropdown menus */
.menu ul li ul,
.menu li ul,
#megamenu {
    background-color: #0b1220 !important;
    border: 1px solid #1f2937 !important;
    border-top: none !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4) !important;
}
.menu ul li ul li a {
    color: #cbd5e1 !important;
    border-bottom: 1px solid #1f2937 !important;
}
.menu ul li ul li a:hover {
    color: #60a5fa !important;
    background-color: rgba(59,130,246,0.1) !important;
}

/* Mega menu */
#megamenuservice {
    background-color: #111827 !important;
    border: 1px solid #1f2937 !important;
    border-radius: 0.375rem !important;
}
#megamenuservice h4 {
    color: #e5e7eb !important;
}
#megamenuservice p,
#megamenuservice a {
    color: #9ca3af !important;
}
#megamenuservice:hover {
    background-color: #1e293b !important;
    border-color: #3b82f6 !important;
}

/* ===========================================
   SECTION 4: STICKY/FIXED HEADER
   =========================================== */

.sabithead {
    background-color: #0f172a !important;
    border-bottom: 1px solid #1f2937 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
}
.sabithead .menu li a {
    color: #cbd5e1 !important;
    text-shadow: none !important;
}
.sabithead .menu ul li ul {
    background-color: #0f172a !important;
}
.sabithead .menu ul li ul li a {
    color: #cbd5e1 !important;
}

/* ===========================================
   SECTION 5: CHECKOUT ACCOUNT SECTION
   =========================================== */

.orderuserlogin {
    background-color: #111827 !important;
    border: 1px solid #1f2937 !important;
    padding: 1.5rem !important;
    border-radius: 0.5rem !important;
}
.orderuserlogin h2 {
    color: #cbd5e1 !important;
    font-weight: 400 !important;
}
.sepetlist,
.sepetlistcon {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
}
.userverification {
    background-color: #111827 !important;
}

/* Radio button labels - Sign Up / Sign In toggle */
.radio-custom-label {
    background-color: #0f172a !important;
    border: 1px solid #1f2937 !important;
    color: #cbd5e1 !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    margin-right: 0.5rem !important;
    cursor: pointer !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
}
.radio-custom-label:hover {
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
    background-color: #1e293b !important;
}
/* Selected/checked state */
.radio-custom:checked + .radio-custom-label,
input[type="radio"]:checked + .radio-custom-label {
    background-color: rgba(59,130,246,0.15) !important;
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}
/* Hide the actual radio input visually */
.radio-custom {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ===========================================
   SECTION 6: CLIENT PANEL SIDEBAR & CONTENT
   =========================================== */

/* Left sidebar */
.mpanelleft,
.leftbarcon,
.sidebar {
    background-color: #0b1220 !important;
    border: 1px solid #1f2937 !important;
    border-radius: 0.5rem !important;
}
.mpanelbtns a,
.leftbarcon a {
    color: #cbd5e1 !important;
    border-bottom: 1px solid #1f2937 !important;
}
.mpanelbtns a:hover,
.leftbarcon a:hover,
#mpanelbtnsaktif {
    color: #60a5fa !important;
    background-color: rgba(59,130,246,0.1) !important;
}

/* Right content area */
.mpanelright,
.mpanelcol,
.wclientblockscon,
#bigcontent,
.rightcontent {
    background-color: #111827 !important;
    border: 1px solid #1f2937 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2) !important;
}

/* Panel title bars */
.mpaneltitle {
    border-bottom-color: #1f2937 !important;
    color: #e5e7eb !important;
}
.mpaneltitle h4,
.mpaneltitle i {
    color: #60a5fa !important;
}

/* Dashboard stat blocks */
.mpanelblok,
.muspanelbloks > div,
.acpstats > div {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid #1f2937 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2) !important;
}
.mpanelblok h1,
.mpanelblok h2 {
    color: #e5e7eb !important;
}
.mpanelblokicon {
    color: rgba(59,130,246,0.15) !important;
}

/* ===========================================
   SECTION 7: MOBILE MENU
   =========================================== */

#mobmenu {
    background-color: #0b1220 !important;
}
#mobmenu ul {
    background-color: #0b1220 !important;
}
#mobmenu a {
    color: #cbd5e1 !important;
    border-bottom: 1px solid #1f2937 !important;
}
#mobmenu a:hover,
#mobmenu a.toggle {
    color: #60a5fa !important;
    background-color: rgba(59,130,246,0.1) !important;
}
.menuAc {
    color: #e5e7eb !important;
}

/* ===========================================
   SECTION 8: TOOLTIPS
   =========================================== */

.mpanelinfo [data-tooltip]:after {
    background-color: #3b82f6 !important;
    color: #fff !important;
}

/* ===========================================
   SECTION 9: RESPONSIVE FIXES
   =========================================== */

@media only screen and (max-width: 1024px) {
    .mpanelinfo {
        text-align: center !important;
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
    
    .mpanelinfo .mpanelright-info,
    .mpanelinfo .lastlogin {
        float: none !important;
        display: block !important;
        margin: 5px 0 !important;
    }
}

@media only screen and (max-width: 768px) {
    .mpanelinfo {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
}
