/* ============================================================
   WaySender Premium UI Theme - Light Mode
   Covers: Sidebar, Header, Footer, Cards, Forms, Tables
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* GLOBAL RESET */
*, *::before, *::after { box-sizing: border-box; }
body, html {
    font-family: 'Outfit', sans-serif !important;
    background-color: #f0f4f8 !important;
    color: #1e293b !important;
}
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #25d366; }

.wrapper { background: #f0f4f8 !important; }

/* ---- TOP HEADER ---- */
.main-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e8edf3 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
    position: fixed !important;
    top: 0 !important; right: 0 !important; left: 0 !important;
    z-index: 1030 !important;
    height: 56px !important;
}
.main-header .logo {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    letter-spacing: 0.5px !important;
    border-right: none !important;
    height: 56px !important;
    line-height: 56px !important;
    width: 230px !important;
    padding: 0 20px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.main-header .logo:hover {
    background: linear-gradient(135deg, #22c55e 0%, #0f766e 100%) !important;
    text-decoration: none !important;
}
.main-header .navbar {
    background: #ffffff !important;
    border: none !important;
    margin-left: 230px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
}
.main-header .navbar .sidebar-toggle {
    color: #64748b !important;
    font-size: 18px !important;
    padding: 0 15px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    border-right: 1px solid #f1f5f9 !important;
    transition: all 0.2s ease !important;
}
.main-header .navbar .sidebar-toggle:hover {
    color: #25d366 !important;
    background: #f8fafc !important;
}
.main-header .navbar .sidebar-toggle .icon-bar {
    background-color: #64748b !important;
    border-radius: 2px !important;
}
.navbar-custom-menu {
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
}
.navbar-nav > .user-menu > .dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 15px !important;
    height: 56px !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}
.navbar-nav > .user-menu > .dropdown-toggle:hover {
    background: #f8fafc !important;
    color: #25d366 !important;
}
.navbar-nav > .user-menu > .dropdown-toggle .fa-user {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    color: #fff !important;
    width: 30px !important; height: 30px !important;
    line-height: 30px !important;
    text-align: center !important;
    border-radius: 50% !important;
    font-size: 13px !important;
    margin-right: 5px !important;
}
.navbar-nav > .user-menu > .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
    min-width: 200px !important;
    margin-top: 8px !important;
    padding: 8px !important;
    right: 0 !important; left: auto !important;
}
.navbar-nav > .user-menu > .dropdown-menu > li > a,
.navbar-nav > .user-menu > .dropdown-menu .btn {
    border-radius: 8px !important;
    padding: 8px 12px !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: block !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    margin: 2px 0 !important;
}
.navbar-nav > .user-menu > .dropdown-menu > li > a:hover,
.navbar-nav > .user-menu > .dropdown-menu .btn:hover {
    background: #f0fdf4 !important;
    color: #128c7e !important;
}
.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    border-radius: 8px !important;
    padding: 15px !important;
}
.navbar-nav > .user-menu > .dropdown-menu > li.user-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e8edf3 !important;
    padding: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
}

/* ---- SIDEBAR ---- */
.main-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e8edf3 !important;
    box-shadow: 2px 0 20px rgba(0,0,0,0.04) !important;
    width: 230px !important;
    position: fixed !important;
    top: 56px !important; bottom: 0 !important; left: 0 !important;
    z-index: 1020 !important;
    overflow: hidden !important;
}
/* Inner sidebar section — this is what needs to scroll */
.main-sidebar .sidebar,
.main-sidebar section.sidebar {
    padding-top: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 100% !important;
}
/* Kill slimscroll wrapper height restriction */
.main-sidebar .sidebar .slimScrollDiv {
    height: 100% !important;
    overflow: visible !important;
}
.main-sidebar .sidebar .slimScrollDiv > div {
    overflow-y: auto !important;
    height: auto !important;
    max-height: 100% !important;
}
/* Scrollbar styling inside sidebar */
.main-sidebar .sidebar::-webkit-scrollbar { width: 4px; }
.main-sidebar .sidebar::-webkit-scrollbar-track { background: transparent; }
.main-sidebar .sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.main-sidebar .sidebar::-webkit-scrollbar-thumb:hover { background: #25d366; }

.user-panel {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5) !important;
    border-bottom: 1px solid #d1fae5 !important;
    padding: 20px 15px !important;
    text-align: center !important;
}
.user-panel img {
    width: 70px !important; height: 70px !important;
    border-radius: 50% !important;
    border: 3px solid #25d366 !important;
    padding: 2px !important;
    background: #fff !important;
    object-fit: cover !important;
    box-shadow: 0 4px 12px rgba(37,211,102,0.2) !important;
}
.user-panel p { margin: 10px 0 4px 0 !important; }
.user-panel b { color: #0f172a !important; font-size: 14px !important; font-weight: 700 !important; }
.user-panel a { font-size: 12px !important; font-weight: 500 !important; }
.user-panel hr { border-color: #d1fae5 !important; margin: 10px 0 0 0 !important; }

.sidebar-menu, .sidebar-menu > li { background: #ffffff !important; }
.sidebar-menu > li > a {
    color: #64748b !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    padding: 10px 20px !important;
    border-left: 3px solid transparent !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.25s ease !important;
}
.sidebar-menu > li > a:hover {
    color: #128c7e !important;
    background: #f0fdf4 !important;
    border-left-color: #25d366 !important;
    text-decoration: none !important;
}
.sidebar-menu > li.active > a {
    color: #128c7e !important;
    background: #f0fdf4 !important;
    border-left-color: #25d366 !important;
    font-weight: 600 !important;
}
.sidebar-menu > li.header {
    background: transparent !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 18px 20px 6px 20px !important;
}
.sidebar-menu li a i {
    color: #64748b !important;
    background: #f1f5f9 !important;
    width: 32px !important; height: 32px !important;
    line-height: 32px !important;
    text-align: center !important;
    border-radius: 8px !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
    font-size: 13px !important;
}
.sidebar-menu li > a:hover i,
.sidebar-menu li.active > a i {
    color: #ffffff !important;
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    transform: scale(1.08) !important;
    box-shadow: 0 3px 10px rgba(37,211,102,0.3) !important;
}
/* ---- PREMIUM SIDEBAR SUBMENU & CATEGORIES ALIGNMENT ---- */

/* Parent Treeview Menu Items styling when open/active */
.sidebar-menu > li.treeview.menu-open > a,
.sidebar-menu > li.treeview.active > a {
    color: #128c7e !important;
    background: rgba(37, 211, 102, 0.06) !important;
    border-left-color: #25d366 !important;
}

/* Ensure child bullet lists have no defaults and align nicely */
.sidebar-menu .treeview-menu {
    list-style: none !important;
    list-style-type: none !important;
    background: #fdfdfd !important; /* Soft premium light background for expanded section */
    padding: 6px 0 6px 0 !important;
    margin: 0 !important;
    border-left: 2px solid #e2e8f0 !important; /* Elegant subtle vertical guide line */
    margin-left: 35px !important; /* Placed cleanly to align vertical guide line under parent icon */
}

/* Subcategory list items and links */
.sidebar-menu .treeview-menu > li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar-menu .treeview-menu > li > a {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 8px 20px 8px 24px !important; /* Indent text cleanly relative to the vertical guide line */
    display: flex !important;
    align-items: center !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    border-radius: 0 8px 8px 0 !important;
    position: relative !important;
}

/* Subtle left dot indicators on hover */
.sidebar-menu .treeview-menu > li > a::before {
    content: "" !important;
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background-color: #cbd5e1 !important;
    transition: all 0.25s ease !important;
}

.sidebar-menu .treeview-menu > li > a:hover {
    color: #128c7e !important;
    background: rgba(37, 211, 102, 0.05) !important;
    padding-left: 28px !important; /* Subtle shift on hover */
}

.sidebar-menu .treeview-menu > li > a:hover::before {
    background-color: #25d366 !important;
    transform: translateY(-50%) scale(1.3) !important;
}

/* Override/Hide the old FontAwesome bullet icon if present */
.sidebar-menu .treeview-menu > li > a i.fa-circle-o,
.sidebar-menu .treeview-menu > li > a i.fa-circle {
    display: none !important;
}

/* Pull-right Chevron alignment and rotation animation */
.sidebar-menu li .pull-right-container {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: transform 0.3s ease !important;
}

.sidebar-menu li.menu-open > a .pull-right-container {
    transform: translateY(-50%) rotate(-90deg) !important; /* Rotate chevron down when open */
}

.sidebar-menu li .pull-right-container > .fa-angle-left {
    color: #94a3b8 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: color 0.3s ease !important;
}

.sidebar-menu li:hover > a .pull-right-container > .fa-angle-left,
.sidebar-menu li.active > a .pull-right-container > .fa-angle-left {
    color: #128c7e !important;
}
.side-nav__devider {
    border-top: 1px solid #e8edf3 !important;
    margin: 6px 20px !important;
}

/* ---- CONTENT WRAPPER ---- */
.content-wrapper {
    background: #f0f4f8 !important;
    margin-left: 230px !important;
    margin-top: 56px !important;
    padding: 25px !important;
    min-height: calc(100vh - 56px - 52px) !important;
}
.content-header { padding: 15px 0 20px 0 !important; }
.content-header h1 { font-size: 22px !important; font-weight: 700 !important; color: #0f172a !important; margin: 0 !important; }
.content-header h1 small { font-size: 14px !important; color: #64748b !important; font-weight: 400 !important; }

/* ---- FOOTER ---- */
.main-footer {
    background: #ffffff !important;
    border-top: 1px solid #e8edf3 !important;
    padding: 14px 25px !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-left: 230px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.02) !important;
}
.main-footer a { color: #25d366 !important; text-decoration: none !important; font-weight: 600 !important; }
.main-footer a:hover { color: #128c7e !important; }

/* ---- STAT BOXES ---- */
.small-box {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.02) !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 24px !important;
}

/* Individual card accents for beautiful dashboard hierarchy */
.row > .col-lg-3:nth-child(1) .small-box { border-left: 5px solid #3b82f6 !important; }
.row > .col-lg-3:nth-child(2) .small-box { border-left: 5px solid #f59e0b !important; }
.row > .col-lg-3:nth-child(3) .small-box { border-left: 5px solid #10b981 !important; }
.row > .col-lg-3:nth-child(4) .small-box { border-left: 5px solid #06b6d4 !important; }

.small-box:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 35px rgba(0,0,0,0.07) !important;
}
.row > .col-lg-3:nth-child(1) .small-box:hover { border-color: #93c5fd !important; box-shadow: 0 16px 35px rgba(59, 130, 246, 0.12) !important; }
.row > .col-lg-3:nth-child(2) .small-box:hover { border-color: #fde047 !important; box-shadow: 0 16px 35px rgba(245, 158, 11, 0.12) !important; }
.row > .col-lg-3:nth-child(3) .small-box:hover { border-color: #6ee7b7 !important; box-shadow: 0 16px 35px rgba(16, 185, 129, 0.12) !important; }
.row > .col-lg-3:nth-child(4) .small-box:hover { border-color: #67e8f9 !important; box-shadow: 0 16px 35px rgba(6, 182, 212, 0.12) !important; }

.small-box .inner { padding: 22px 24px !important; }
.small-box .inner h3 { font-size: 32px !important; font-weight: 800 !important; color: #0f172a !important; margin: 0 0 6px 0 !important; letter-spacing: -0.5px !important; }
.small-box .inner p { color: #64748b !important; font-weight: 700 !important; font-size: 11.5px !important; text-transform: uppercase !important; letter-spacing: 1px !important; margin: 0 !important; }

/* Elegant background icon matching the card's accent color */
.small-box .icon {
    font-size: 64px !important;
    top: 15px !important;
    right: 20px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 0.18 !important;
}
.row > .col-lg-3:nth-child(1) .small-box .icon { color: #3b82f6 !important; }
.row > .col-lg-3:nth-child(2) .small-box .icon { color: #f59e0b !important; }
.row > .col-lg-3:nth-child(3) .small-box .icon { color: #10b981 !important; }
.row > .col-lg-3:nth-child(4) .small-box .icon { color: #06b6d4 !important; }

.small-box:hover .icon {
    transform: scale(1.12) rotate(6deg) !important;
    opacity: 0.28 !important;
}
.small-box-footer {
    background: #f8fafc !important;
    color: #475569 !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 10px 24px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.small-box-footer:hover {
    color: #128c7e !important;
    background: #f0fdf4 !important;
    text-decoration: none !important;
}

/* ---- CONTENT BOXES ---- */
.box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 25px rgba(0,0,0,0.02) !important;
    margin-bottom: 24px !important;
    overflow: hidden !important;
}
.box-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 18px 24px !important;
    border-radius: 16px 16px 0 0 !important;
    display: flex !important;
    align-items: center !important;
}
.box-title { font-size: 16.5px !important; font-weight: 700 !important; color: #0f172a !important; }
.box-header .box-tools { margin-left: auto !important; }
.box-body { padding: 24px !important; color: #334155 !important; }
.box-footer { background: #f8fafc !important; border-top: 1px solid #f1f5f9 !important; padding: 16px 24px !important; border-radius: 0 0 16px 16px !important; }
.box.box-primary { border-top: 4px solid #25d366 !important; }
.box.box-success { border-top: 4px solid #22c55e !important; }
.box.box-info    { border-top: 4px solid #0ea5e9 !important; }
.box.box-warning { border-top: 4px solid #f59e0b !important; }
.box.box-danger  { border-top: 4px solid #ef4444 !important; }

/* ---- FORMS ---- */
.form-control, select, textarea {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    color: #0f172a !important;
    padding: 9px 14px !important;
    height: auto !important;
    font-size: 14px !important;
    font-family: 'Outfit', sans-serif !important;
    transition: all 0.25s ease !important;
}
.form-control:focus, select:focus, textarea:focus {
    border-color: #25d366 !important;
    box-shadow: 0 0 0 3px rgba(37,211,102,0.12) !important;
    outline: none !important;
}
label { color: #475569 !important; font-weight: 600 !important; font-size: 12.5px !important; margin-bottom: 6px !important; }

/* ---- BUTTONS ---- */
.btn {
    border-radius: 8px !important;
    padding: 8px 18px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1) !important;
    font-family: 'Outfit', sans-serif !important;
}
.btn-primary, .btn-success, .btn-info, .btn-login {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(37,211,102,0.2) !important;
}
.btn-primary:hover, .btn-success:hover, .btn-info:hover, .btn-login:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(37,211,102,0.35) !important;
    color: #fff !important;
}
.btn-danger { background: linear-gradient(135deg,#ef4444,#b91c1c) !important; border: none !important; color: #fff !important; }
.btn-danger:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 18px rgba(239,68,68,0.3) !important; color: #fff !important; }
.btn-warning { background: linear-gradient(135deg,#f59e0b,#d97706) !important; border: none !important; color: #fff !important; }
.btn-default { background: #f1f5f9 !important; border: 1px solid #e2e8f0 !important; color: #475569 !important; }
.btn-default:hover { background: #e2e8f0 !important; color: #0f172a !important; }
.btn-flat { border-radius: 8px !important; }

/* ---- TABLES ---- */
.table { 
    color: #334155 !important; 
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    margin-top: -10px !important;
}
.table > thead > tr > th {
    border: none !important;
    color: #64748b !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 0.8px !important;
    padding: 14px 20px !important;
    background: transparent !important;
}
.table > tbody > tr {
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.015) !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}
.table > tbody > tr > td { 
    border: none !important; 
    padding: 16px 20px !important; 
    vertical-align: middle !important; 
    font-size: 13.5px !important; 
}
.table > tbody > tr > td:first-child {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}
.table > tbody > tr > td:last-child {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}
.table-hover > tbody > tr:hover { 
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(37,211,102,0.08) !important;
    background: #ffffff !important;
}

/* Custom Table Components (Pills, Textareas, Download Buttons) */
.table textarea {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    padding: 10px 14px !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-family: 'Outfit', sans-serif !important;
    resize: vertical !important;
    outline: none !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.01) !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
    max-width: 200px !important;
}
.table textarea:focus {
    border-color: #25d366 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37,211,102,0.12) !important;
}

/* Premium Status Pill Badges in Tables */
.table td a[style*="background:red"],
.table td a[style*="background:orange"],
.table td a[style*="background:green"] {
    display: inline-block !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border-radius: 20px !important; /* Pill shape! */
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
}
.table td a[style*="background:red"] {
    background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}
.table td a[style*="background:orange"] {
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    color: #d97706 !important;
    border: 1px solid rgba(217, 119, 6, 0.2) !important;
}
.table td a[style*="background:green"] {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

/* Download / Action links inside tables styled as clean micro-buttons */
.table td a[style*="color:blue"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    background: #f0fdf4 !important;
    color: #128c7e !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    border: 1.5px solid rgba(37,211,102,0.15) !important;
}
.table td a[style*="color:blue"]:hover {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(37,211,102,0.2) !important;
    transform: translateY(-1px) !important;
}

/* ---- ALERTS ---- */
.alert { border-radius: 10px !important; border: none !important; padding: 14px 18px !important; font-size: 13.5px !important; font-weight: 500 !important; }
.alert-success { background: #d1fae5 !important; color: #065f46 !important; }
.alert-danger  { background: #fee2e2 !important; color: #991b1b !important; }
.alert-warning { background: #fef3c7 !important; color: #92400e !important; }
.alert-info    { background: #e0f2fe !important; color: #075985 !important; }
.badge { border-radius: 6px !important; font-weight: 600 !important; }

/* ---- SIDEBAR MINI COLLAPSED ---- */
.sidebar-mini.sidebar-collapse .main-header .navbar { margin-left: 50px !important; }
.sidebar-mini.sidebar-collapse .main-sidebar { width: 50px !important; }
.sidebar-mini.sidebar-collapse .content-wrapper,
.sidebar-mini.sidebar-collapse .main-footer { margin-left: 50px !important; }
.sidebar-mini.sidebar-collapse .sidebar-menu > li > a i { margin-right: 0 !important; }

/* ---- LOGIN PAGE ---- */
.login-block {
    background: radial-gradient(circle at 10% 20%, rgba(209,250,229,0.5) 0%, #f0f4f8 90%) !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}
.login-block .container {
    background: #ffffff !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08) !important;
    overflow: hidden !important;
    max-width: 960px !important;
    padding: 0 !important;
}
.login-sec { padding: 50px 45px !important; display: flex !important; flex-direction: column !important; justify-content: center !important; }
.login-sec h2 { font-size: 26px !important; font-weight: 800 !important; color: #0f172a !important; margin-bottom: 8px !important; text-align: left !important; }
.login-sec h2:after { content: "" !important; display: block !important; width: 40px !important; height: 4px !important; background: linear-gradient(90deg,#25d366,#128c7e) !important; border-radius: 2px !important; margin-top: 10px !important; }
.banner-sec {
    background: linear-gradient(145deg, #0f766e 0%, #047857 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px !important;
    min-height: 500px !important;
    position: relative !important;
    overflow: hidden !important;
}
.banner-sec::before { content:"" !important; position:absolute !important; top:-60px !important; right:-60px !important; width:250px !important; height:250px !important; background:rgba(37,211,102,0.15) !important; border-radius:50% !important; filter:blur(40px) !important; }
.banner-sec img { position:relative !important; z-index:2 !important; border-radius:16px !important; box-shadow:0 12px 40px rgba(0,0,0,0.25) !important; max-width:90% !important; }
.banner-text { position:relative !important; z-index:2 !important; width:100% !important; text-align:left !important; margin-bottom:25px !important; }
.banner-text h2 { color:#ffffff !important; font-size:26px !important; font-weight:800 !important; margin-bottom:12px !important; }
.banner-text h2:after { content:"" !important; display:block !important; width:50px !important; height:4px !important; background:#25d366 !important; border-radius:2px !important; margin-top:10px !important; }
.banner-text ul { list-style:none !important; padding:0 !important; margin:0 !important; }
.banner-text ul li { color:rgba(255,255,255,0.85) !important; font-size:14px !important; padding:5px 0 !important; display:flex !important; align-items:center !important; gap:8px !important; font-weight:500 !important; }
.banner-text ul li:before { content:"✓" !important; color:#25d366 !important; font-weight:700 !important; }
.btn-login { width:100% !important; padding:12px !important; font-size:15px !important; margin-top:10px !important; }
.form-group label.text-uppercase { font-size:11px !important; letter-spacing:1px !important; color:#64748b !important; font-weight:700 !important; }

/* ---- MISC ---- */
hr { border-color: #e8edf3 !important; }
.pagination > li > a, .pagination > li > span { color:#475569 !important; border-color:#e2e8f0 !important; border-radius:6px !important; margin:0 2px !important; }
.pagination > .active > a, .pagination > .active > span { background:linear-gradient(135deg,#25d366,#128c7e) !important; border-color:#25d366 !important; color:#fff !important; }
.progress { border-radius:10px !important; background:#e8edf3 !important; height:8px !important; }
.progress-bar { background:linear-gradient(135deg,#25d366,#128c7e) !important; border-radius:10px !important; }

/* ============================================================
   RESPONSIVE LAYOUT & SIDEBAR TOGGLE SYSTEM (FIXES OVERLAPS)
   ============================================================ */

/* Base transition speed for layout elements */
.main-sidebar, 
.content-wrapper, 
.main-footer, 
.main-header .navbar,
.main-header .logo {
    transition: transform 0.3s ease-in-out, margin-left 0.3s ease-in-out, width 0.3s ease-in-out, padding 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
}

/* --- DESKTOP VIEWPORTS (>= 768px) --- */
@media (min-width: 768px) {
    /* Collapsed state (completely closed) */
    .sidebar-collapse .main-sidebar {
        transform: translate3d(-230px, 0, 0) !important;
    }
    .sidebar-collapse .content-wrapper {
        margin-left: 0 !important;
    }
    .sidebar-collapse .main-footer {
        margin-left: 0 !important;
    }
    .sidebar-collapse .main-header .navbar {
        margin-left: 0 !important;
    }
    .sidebar-collapse .main-header .logo {
        transform: translate3d(-230px, 0, 0) !important;
        width: 0 !important;
        padding: 0 !important;
        opacity: 0 !important;
    }
}

/* --- MOBILE & TABLET VIEWPORTS (< 768px) --- */
@media (max-width: 767px) {
    /* Hide sidebar offscreen by default on mobile */
    .main-sidebar {
        transform: translate3d(-230px, 0, 0) !important;
    }
    .content-wrapper {
        margin-left: 0 !important;
    }
    .main-footer {
        margin-left: 0 !important;
    }
    .main-header .navbar {
        margin-left: 0 !important;
        background: transparent !important;
        position: relative !important;
        z-index: 1030 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .main-header .logo {
        width: 100% !important;
        position: absolute !important;
        left: 0 !important;
        text-align: center !important;
        z-index: 1020 !important;
        pointer-events: none !important;
    }
    
    /* When sidebar is explicitly opened on mobile */
    .sidebar-open .main-sidebar {
        transform: translate3d(0, 0, 0) !important;
        z-index: 1050 !important;
    }
    
    /* Ensure toggle button stays on top of logo text on mobile and is white */
    .main-header .navbar .sidebar-toggle {
        position: relative !important;
        z-index: 1035 !important;
        color: #ffffff !important;
        border-right: none !important;
    }
    .main-header .navbar .sidebar-toggle .icon-bar {
        background-color: #ffffff !important;
    }
    
    /* User profile menu text white on mobile */
    .navbar-nav > .user-menu > .dropdown-toggle {
        color: #ffffff !important;
    }
}

/* ============================================================
   PREMIUM PAGE ENHANCEMENTS & TRANSITIONS (UI/UX UPDATES)
   ============================================================ */

/* Fade-in animation for content loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* ---- PREMIUM INFO BOXES (DASHBOARD WIDGETS) ---- */
.info-box {
    background: #ffffff !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    min-height: 90px !important;
    margin-bottom: 20px !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
}

.info-box:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 35px rgba(37,211,102,0.08) !important;
    border-color: #a7f3d0 !important;
}

.info-box-icon {
    height: 90px !important;
    width: 90px !important;
    line-height: 90px !important;
    font-size: 30px !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    background-color: #128c7e !important;
}

.bg-aqua {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    background-color: #0284c7 !important;
}

.bg-yellow {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    background-color: #d97706 !important;
}

.bg-green {
    background: linear-gradient(135deg, #10b981, #047857) !important;
    background-color: #047857 !important;
}

.bg-red {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    background-color: #b91c1c !important;
}

.info-box:hover .info-box-icon {
    transform: scale(1.05) !important;
}

/* Fix checkbox alignment on login page */
.login-sec .form-group input[type="checkbox"] {
    margin-top: 10px !important;
    margin-right: 8px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.info-box-content {
    padding: 15px 20px !important;
    margin-left: 0 !important;
    flex-grow: 1 !important;
}

.info-box-text {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 4px !important;
    display: block !important;
}

.info-box-number {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    display: block !important;
}

/* ---- PREMIUM MODALS STYLING ---- */
.modal-content {
    border-radius: 20px !important;
    border: 1px solid #e8edf3 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
}

.modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e8edf3 !important;
    padding: 20px 24px !important;
}

.modal-header .modal-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.modal-header .close {
    font-size: 24px !important;
    color: #64748b !important;
    opacity: 0.6 !important;
    transition: all 0.2s ease !important;
}

.modal-header .close:hover {
    opacity: 1 !important;
    color: #ef4444 !important;
}

.modal-body {
    padding: 24px !important;
    color: #475569 !important;
    background: #f8fafc !important;
}

.modal-footer {
    background: #ffffff !important;
    border-top: 1px solid #e8edf3 !important;
    padding: 16px 24px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

/* ---- FORM INPUT GROUP POLISHING ---- */
.input-group-addon {
    background-color: #f1f5f9 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-right: none !important;
    color: #64748b !important;
    border-radius: 8px 0 0 8px !important;
    font-weight: 600 !important;
}

.input-group .form-control {
    border-radius: 0 8px 8px 0 !important;
}

/* Checkbox and Radio Neumorphic touch */
input[type="checkbox"], input[type="radio"] {
    accent-color: #25d366 !important;
    width: 16px !important;
    height: 16px !important;
    cursor: pointer !important;
}

/* Select option styling */
select {
    cursor: pointer !important;
}

/* Card tools box collapse buttons */
.btn-box-tool {
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
}

.btn-box-tool:hover {
    color: #25d366 !important;
}

/* Data Tables search layout cleanup */
.dataTables_filter label {
    display: block !important;
    width: 100% !important;
}

/* =============================================================
   COMPREHENSIVE PAGE DESIGNS — ALL PANELS UI/UX UPGRADE
   ============================================================= */

/* ---- LABELS & BADGES (Across All Pages) ---- */
.label {
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.label-primary, .label-info   { background: linear-gradient(135deg,#0ea5e9,#0284c7) !important; color:#fff !important; }
.label-success, .label-green  { background: linear-gradient(135deg,#25d366,#128c7e) !important; color:#fff !important; }
.label-warning, .label-yellow { background: linear-gradient(135deg,#f59e0b,#d97706) !important; color:#fff !important; }
.label-danger,  .label-red    { background: linear-gradient(135deg,#ef4444,#b91c1c) !important; color:#fff !important; }
.label-default                { background: #e2e8f0 !important; color:#475569 !important; }

/* ---- BREADCRUMBS ---- */
.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
}
.breadcrumb > li + li::before { color: #94a3b8 !important; }
.breadcrumb > li > a {
    color: #25d366 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}
.breadcrumb > li > a:hover { color: #128c7e !important; }
.breadcrumb > .active { color: #64748b !important; font-weight: 600 !important; }

/* ---- CONTENT HEADER ---- */
.content-header {
    background: transparent !important;
    padding: 10px 0 18px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.content-header h1 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.content-header h1 small {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 400 !important;
}
.content-header h1::before {
    content: '' !important;
    display: inline-block !important;
    width: 4px !important;
    height: 24px !important;
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    border-radius: 4px !important;
}

/* ---- DATATABLES FULL POLISH ---- */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    color: #0f172a !important;
    background: #fff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #25d366 !important;
    box-shadow: 0 0 0 3px rgba(37,211,102,0.12) !important;
    outline: none !important;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length {
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    margin: 0 2px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f0fdf4 !important;
    border-color: #a7f3d0 !important;
    color: #128c7e !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(37,211,102,0.35) !important;
}

/* ---- USER/PROFILE PANEL ---- */
.user-panel {
    padding: 12px 16px 10px 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    text-align: center !important;
}
.user-panel img {
    width: 68px !important;
    height: 68px !important;
    border-radius: 50% !important;
    border: 3px solid rgba(37,211,102,0.5) !important;
    object-fit: cover !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    transition: transform 0.3s ease !important;
    margin-bottom: 8px !important;
}
.user-panel img:hover { transform: scale(1.05) !important; }
.user-panel p, .user-panel b {
    color: #e2e8f0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* ---- BOX TOOLS / COLLAPSE BUTTONS ---- */
.box-header.with-border {
    border-bottom: 1px solid #e8edf3 !important;
}
.box-tools .btn-box-tool {
    background: transparent !important;
    border: none !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}
.box-tools .btn-box-tool:hover {
    background: #f0fdf4 !important;
    color: #25d366 !important;
}

/* ---- TABLE ROW STATUS COLORS ---- */
.table > tbody > tr.success { background: #f0fdf4 !important; }
.table > tbody > tr.warning { background: #fffbeb !important; }
.table > tbody > tr.danger  { background: #fef2f2 !important; }
.table > tbody > tr.info    { background: #f0f9ff !important; }

/* ---- NO DATA / EMPTY STATE ---- */
.no-data-found, .box-body p:only-child {
    text-align: center !important;
    color: #94a3b8 !important;
    padding: 30px !important;
    font-size: 14px !important;
}

/* ---- FORM BOX STYLE ENHANCEMENTS ---- */
.box .form-group {
    margin-bottom: 18px !important;
}
.box .form-group label {
    display: block !important;
    margin-bottom: 6px !important;
}

/* ---- SECTION DIVIDERS ---- */
.side-nav__devider,
.sidebar-menu .header {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    padding: 14px 16px 6px 16px !important;
}

/* ---- PREMIUM PROFILE PAGE ---- */
.profile-user-img {
    border: 4px solid #25d366 !important;
    box-shadow: 0 8px 25px rgba(37,211,102,0.25) !important;
    border-radius: 50% !important;
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}
.profile-user-img:hover { transform: scale(1.08) !important; }
.profile-username {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-top: 10px !important;
}
.profile-user-description {
    font-size: 13px !important;
    color: #64748b !important;
    margin-top: 4px !important;
}
.nav-pills > li > a {
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:focus,
.nav-pills > li.active > a:hover {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(37,211,102,0.3) !important;
}
.nav-pills > li > a:hover {
    background: #f0fdf4 !important;
    color: #128c7e !important;
}

/* ---- LOGIN PAGE ENHANCED ---- */
.login-sec {
    background: #ffffff !important;
}
.login-sec .form-group input[type="text"],
.login-sec .form-group input[type="password"] {
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
}
.login-sec p {
    color: #64748b !important;
    font-size: 13px !important;
    margin-top: 8px !important;
}

/* ---- TRANSACTION PAGE BADGES ---- */
.badge-success { background: linear-gradient(135deg,#25d366,#128c7e) !important; color:#fff !important; }
.badge-danger  { background: linear-gradient(135deg,#ef4444,#b91c1c) !important; color:#fff !important; }
.badge-warning { background: linear-gradient(135deg,#f59e0b,#d97706) !important; color:#fff !important; }
.badge-info    { background: linear-gradient(135deg,#0ea5e9,#0284c7) !important; color:#fff !important; }
.badge-primary { background: linear-gradient(135deg,#8b5cf6,#6d28d9) !important; color:#fff !important; }

/* ---- TEXTAREA RESIZE ---- */
textarea.form-control {
    resize: vertical !important;
    min-height: 100px !important;
}

/* ---- CARD HEADER ACTION BUTTON ---- */
.box-header .pull-right .btn {
    font-size: 12px !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
}

/* ---- SEARCH INPUT IN TABLES ---- */
.dataTables_filter {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.dataTables_filter input {
    min-width: 200px !important;
}

/* ---- TOOLTIP UPGRADE ---- */
.tooltip .tooltip-inner {
    background: #0f172a !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
    font-family: 'Outfit', sans-serif !important;
}

/* ---- PRINT STYLES ---- */
@media print {
    .main-sidebar, .main-header, .main-footer, .content-header .breadcrumb { display: none !important; }
    .content-wrapper { margin: 0 !important; padding: 0 !important; }
    .box { box-shadow: none !important; border: 1px solid #ccc !important; }
}




/* =============================================================
   INTERNAL PAGES UI/UX & PROPER ALIGNMENT OVERRIDES
   ============================================================= */

/* ---- FORM ALIGNMENT & SPACING ---- */
.content form {
    max-width: 100% !important;
}
.content .box-body form .col-xs-12,
.content .box-body form .col-md-6,
.content .box-body form .col-md-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove raw &nbsp; spaces used for indentation */
.box-body br + b, 
.box-body br + label, 
.box-body h4 + input, 
.box-body h4 + textarea {
    margin-left: 0 !important;
}

/* Form Group layout polishing */
.form-group {
    margin-bottom: 24px !important;
}
.form-group label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 8px !important;
    display: inline-block !important;
}
.form-control {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    background: #f8fafc !important;
}
.form-control:focus {
    border-color: #25d366 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(37,211,102,0.12) !important;
}

/* Custom modern upload labels (replacing generic .xylabel) */
.xylabel, .xylabelbb {
    cursor: pointer !important;
    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    margin: 8px 0 !important;
    background: #f8fafc !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    transition: all 0.25s ease !important;
}
.xylabel:hover {
    background: #f0fdf4 !important;
    border-color: #25d366 !important;
    color: #128c7e !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37,211,102,0.08) !important;
}
.xylabel:active {
    transform: translateY(0) !important;
}
.xylabel span, .xylabelbb span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Media preview image boxes */
img#logo, img#blah, img#blah2, img#blah3 {
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    padding: 4px !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    transition: all 0.2s ease !important;
}
img#logo:hover, img#blah:hover {
    border-color: #25d366 !important;
    transform: scale(1.03) !important;
}

/* Validation Counters UI (Send WhatsApp page) */
#validCount, #duplicateCount, #invalidCount {
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    display: inline-flex !important;
    align-items: center !important;
}
#validCount {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
}
#duplicateCount {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important;
}
#invalidCount {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
}

/* Clean up status displays & limits text */
.text-danger, b[style*="color:red"], b[style*="color:green"] {
    font-size: 13.5px !important;
    font-weight: 600 !important;
}
.text-danger i, .text-success i {
    margin-right: 6px !important;
}

/* Box header modifications */
.box-header .box-title button {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(37,211,102,0.2) !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Custom validation check button */
button[onclick*="validateNumbers"] {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(37,99,235,0.2) !important;
    transition: all 0.2s ease !important;
}
button[onclick*="validateNumbers"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(37,99,235,0.3) !important;
}

/* Layout align corrections for internal tables */
.table-responsive {
    border-radius: 12px !important;
    border: 1px solid #e8edf3 !important;
    margin-top: 15px !important;
}
.table-responsive .table {
    margin-bottom: 0 !important;
}

/* ---- TAILWIND GRID UTILITIES COMPATIBILITY LAYER ---- */
.grid {
    display: grid !important;
}
.grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}
.gap-6 {
    gap: 24px !important;
}
.mt-5 {
    margin-top: 20px !important;
}

/* Col spans */
.col-span-12 {
    grid-column: span 12 / span 12 !important;
}

/* Responsive grids for larger viewports */
@media (min-width: 768px) {
    .lg\:col-span-6 {
        grid-column: span 6 / span 6 !important;
    }
    .lg\:col-span-4 {
        grid-column: span 4 / span 4 !important;
    }
    .lg\:col-span-8 {
        grid-column: span 8 / span 8 !important;
    }
}

@media (max-width: 767px) {
    .grid-cols-12 {
        grid-template-columns: 1fr !important;
    }
    .lg\:col-span-6, .lg\:col-span-4, .lg\:col-span-8 {
        grid-column: span 12 / span 12 !important;
    }
}

/* Style cards/boxes that use .intro-y.box */
.intro-y.box {
    background: #ffffff !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    margin-bottom: 24px !important;
    padding: 24px !important;
    overflow: hidden !important;
}
.intro-y.box .flex.border-b {
    border-bottom: 1px solid #f1f5f9 !important;
    margin: -24px -24px 20px -24px !important;
    padding: 20px 24px !important;
    background: #f8fafc !important;
}
.intro-y.box h4, .intro-y.box b {
    color: #0f172a !important;
    font-weight: 700 !important;
}
.intro-y.box .p-5 {
    padding: 0 !important;
}

/* Correct inputs inside box cards */
.intro-y.box .form-control {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 16px !important;
}
.intro-y.box select.form-select,
.intro-y.box select.form-control1 {
    width: 100% !important;
    max-width: 100% !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    height: auto !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-family: 'Outfit', sans-serif !important;
    margin-bottom: 16px !important;
    outline: none !important;
}
.intro-y.box select.form-select:focus,
.intro-y.box select.form-control1:focus {
    border-color: #25d366 !important;
    box-shadow: 0 0 0 4px rgba(37,211,102,0.12) !important;
    background: #ffffff !important;
}
.intro-y.box .form-label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #475569 !important;
}
.intro-y.box hr {
    margin: 20px 0 !important;
    border-color: #f1f5f9 !important;
}

/* MOBILE RESPONSIVENESS OVERRIDES */
@media (max-width: 767px) {
    .content-wrapper,
    .main-header .navbar,
    .main-footer {
        margin-left: 0 !important;
    }
    .content-wrapper {
        padding: 15px !important;
    }
    /* Stack small boxes vertically on mobile for cleaner look */
    .col-xs-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    /* Form controls, textareas, and files upload alignment */
    .form-control, 
    #vertical-form-1, 
    #textarea, 
    #attid, 
    .xylabel, 
    .xylabelbb {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* Centering image, PDF and video previews on mobile */
    #logo, #blah, #blah2, #blah3, #blah4, #pdf, #video {
        display: block !important;
        margin: 15px auto !important;
    }
    /* Smooth horizontal scroll list tables on mobile */
    .table-responsive {
        border: none !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .table-responsive::-webkit-scrollbar {
        height: 5px !important;
    }
    /* Buttons spacing */
    .btn-lg {
        width: 100% !important;
        display: block !important;
        margin-top: 15px !important;
    }
    /* Stack flex validation counters vertically on mobile */
    div[style*="display: flex; gap: 5px;"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        display: flex !important;
    }
    div[style*="display: flex; gap: 5px;"] > div, 
    div[style*="display: flex; gap: 5px;"] > button {
        width: 100% !important;
        text-align: center !important;
        margin-left: 0 !important;
    }
}


