/*
Theme Name: XosoDaiPhat Clone
Theme URI: https://xosodaiphat.com
Description: Modern Clean Design Theme (BS5) - Border Style
Version: 2.1
Text Domain: xosodaiphat
*/

:root {
    --primary-color: #e11d48;
    /* Vibrant Rose/Red */
    --accent-color: #fff1f2;
    --dark-navy: #1e293b;
    --bg-body: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #475569;
    --text-heading: #0f172a;
    --card-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
    --card-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.6;
}

/* Base Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    font-weight: 700;
}

a {
    transition: all 0.2s ease;
}

/* Grid & Layout Styling */
.container {
    max-width: 1200px !important;
}

/* Remove all shadows, use borders instead */
.shadow,
.shadow-lg {
    box-shadow: none !important;
    border: 1px solid var(--border-color) !important;
}

/* Top Bar */
.top-bar {
    background-color: #212529;
    color: #fff;
    font-size: 0.85rem;
}

.top-bar a:hover {
    text-decoration: underline;
}

/* Main Header Logo Area */
.main-header {
    background: #fff;
    padding: 10px 0;
    border-bottom: 2px solid var(--border-color);
}

/* Header Styles */
.hover-link:hover {
    color: #dc3545 !important;
    transition: 0.3s;
}

.navbar-brand img {
    max-width: 250px;
    height: auto;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
    color: #dc3545 !important;
}

.navbar-nav .nav-item.active .nav-link {
    color: #dc3545 !important;
}

/* Dropdown & Mega Menu */
.dropdown-menu {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    margin-top: 10px;
}

.mega-menu-content {
    min-width: 800px;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.mega-menu-content h6 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.mega-menu-content a {
    font-size: 14px;
    padding: 5px 0;
    color: #555;
    transition: 0.2s;
}

.mega-menu-content a:hover {
    color: #dc3545;
    padding-left: 5px;
}

/* Premium Card Style (The unified look) */
.xsdp-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.xsdp-card:hover {
    border-color: #cbd5e1;
}

.xsdp-card-header {
    padding: 10px 15px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xsdp-card-header .title {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.xsdp-card-body {
    padding: 12px;
}

/* Specific Section Titles */
.xsdp-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-left: 4px;
}

.xsdp-section-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.xsdp-section-title h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

/* Sidebar Styles */
.sidebar-box {
    margin-bottom: 15px;
}

.sidebar-title {
    background: #ffffff;
    color: var(--text-heading);
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-bottom: 2px solid var(--primary-color);
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 8px 0;
}

.sidebar-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-content ul li a,
.sidebar-content .sidebar-label {
    display: flex;
    align-items: center;
    padding: 6px 15px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-content .sidebar-label {
    background: #f8fafc;
    color: var(--dark-navy);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    margin-top: 10px;
}

.sidebar-content ul li:first-child .sidebar-label {
    margin-top: 0;
}

.sidebar-content ul li a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 25px;
}

.sidebar-content ul li a i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    font-size: 12px;
    opacity: 0.7;
}

/* Result Boxes */
.box-result {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.box-result .head {
    background: var(--primary-gradient);
    color: #fff;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    border-bottom: 2px solid #b71c1c;
}

.box-result .content {
    padding: 20px;
    background: #fff;
}

/* Content Boxes */
.box-content {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Lottery Table Refinement */
/* Lottery Table Refinement */
.table-xoso {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
    /* Ensure borders are clean */
    border-spacing: 0;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 8px;
    /* Rounded corners wrapper */
    overflow: hidden;
    /* For radius */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);letter-spacing: -1px;
}

.table-xoso thead th {
    background: #f1f5f9;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #334155;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
}

.table-xoso td {
    padding: 10px 5px;
    /* Comfortable padding */
    border: 1px solid var(--border-color);
    vertical-align: middle;
    text-align: center;
    /* Center everything by default */
    letter-spacing: -1px;
}

/* Prize Label Column */
.table-xoso td:first-child {
    background: #f8fafc;
    font-weight: 600;
    width: 80px;
    /* Fixed efficient width */
    text-align: center;
    color: #475569;
    font-size: 13px;
    /* Legible label size */
}

/* Number Styling - General */
.number-black-bold,
.special-prize-sm,
.special-prize-lg,
.special-code {
    display: inline-block;
    margin: 4px 8px;
    /* Explicit separation between numbers */
    line-height: 1.4;
    letter-spacing: 0.5px;
}

/* Standard Numbers (G1-G7 generally) */
.number-black-bold {
    font-weight: 700;
    color: #1e293b;
    font-size: 18px;
    /* Clear large text */
}

/* Special Prize (DB) */
.special-prize-lg {
    font-weight: 800;
    color: #dc2626;
    /* Vibrant Red */
    font-size: 24px;
    margin: 5px 0;
}

/* Prize 8 (G8) - usually red */
.special-prize-sm {
    font-weight: 700;
    color: #dc2626;
    font-size: 20px;
}

/* Special Codes (MaDB) */
.special-code {
   
    font-weight: 600;
    color: #0d9488;
    /* Teal for special codes */
    font-size: 16px;
    background: #f0fdfa;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #ccfbf1;
}

/* Ball Styling (if used) */
.ball-prize {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 2px 4px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #e2e8f0);
    border: 1px solid #cbd5e1;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

/* Loto / Stats Tables */
.loto-table,
.stats-table {
    width: 100%;
    margin-top: 15px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.loto-table th,
.stats-table th {
    background: #f8f9fa;
    font-weight: 600;
    padding: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
}

.loto-table td,
.stats-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.loto-number {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

/* Override Bootstrap cols inside table if present */
.table-xoso td .col-xs-6,
.table-xoso td .col-xs-4,
.table-xoso td .col-md-3 {
    width: auto !important;
    float: none !important;
    padding: 0 !important;
    display: inline-block !important;
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 576px) {
    .table-xoso td {
        padding: 8px 2px;
        /* Tighter padding on mobile */
    }

    /* Mobile Logo Fix */
    .navbar-brand img,
    .offcanvas-header img {
        max-width: 180px;
        height: auto;
    }

    .table-xoso td:first-child {
        width: 50px;
        font-size: 12px;
        padding: 5px;
        white-space: nowrap;
        /* Prevent wrapping if too squeezed */
    }

    .number-black-bold {
        font-size: 16px;
        /* Still readable but slightly smaller */
        margin: 2px 4px;
    }

    .special-prize-lg {
        font-size: 20px;
        letter-spacing: 0;
    }

    .special-prize-sm {
        font-size: 16px;
    }

    .special-code {
        font-size: 14px;
    }

    .ball-prize {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Sticky Sub-Navbar */
.sticky-sub-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    border-bottom: 2px solid var(--border-color);
    padding: 10px 0;
}

.horizontal-scroll-menu {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding: 5px 0;
}

.horizontal-scroll-menu::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.horizontal-scroll-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.horizontal-scroll-menu a {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.horizontal-scroll-menu a:hover,
.horizontal-scroll-menu a.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Statistics Tables */
.stats-table {
    border: 1px solid var(--border-color);
    background: #fff;
}

.stats-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
}

.stats-table th {
    font-weight: 700;
    padding: 12px;
    border: 1px solid var(--border-color);
}

.stats-table td {
    padding: 10px;
    border: 1px solid var(--border-color);
}

/* Alert Boxes */
.alert {
    border-radius: 4px;
    border: 1px solid;
}

.alert-info {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    color: #004085;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.2s;
    border: 1px solid;
}

.btn-danger {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-danger:hover {
    background: #b71c1c;
    border-color: #b71c1c;
}

.btn-outline-secondary {
    border-color: var(--border-color);
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: var(--secondary-color);
}

/* Footer */
footer {
    background: #212529;
    color: #fff;
    margin-top: 40px;
    border-top: 3px solid var(--primary-color);
}

footer h5 {
    font-weight: 700;
    font-size: 16px;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #fff;
}

/* Breadcrumb Navigation */
.block {
    margin-bottom: 20px;
}

.block-main-heading {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px 4px 0 0;
    padding: 12px 20px;
    border-bottom: 2px solid var(--primary-color);
}

.block-main-heading h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.block-main-heading h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.block-main-heading h2 a:hover {
    color: #b71c1c;
}

.list-link {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 10px 20px;
}

.class-title-list-link {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.class-title-list-link a {
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    padding: 4px 8px;
    border-radius: 3px;
}

.class-title-list-link a:hover {
    color: var(--primary-color);
    background: #fff;
}

.class-title-list-link a.u-line {
    position: relative;
}

.class-title-list-link span {
    color: #999;
    font-weight: 400;
    margin: 0 4px;
}

/* Vietlott Result Balls */
.vietlott-result .bg-danger {
    background-color: var(--primary-color) !important;
    border: 2px solid #b71c1c;
}

/* Utility Classes */
.border-0 {
    border: none !important;
}

.rounded {
    border-radius: 4px !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Remove Bootstrap default shadows */
.shadow-none {
    box-shadow: none !important;
}

/* Utility */
.shadow-sm {
    box-shadow: var(--card-shadow) !important;
    border: 1px solid var(--border-color) !important;
}

.rounded-3 {
    border-radius: 12px !important;
}

/* ========================================
   PREMIUM CLEAN DESIGN (Redesigned)
   ======================================== */

/* Main lottery results container */
.block-main-content {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 0;
    margin-top: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Header Title */
.block-main-content h3.text-center {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    padding: 16px;
    background: #fff;
    border-bottom: 2px solid #f1f5f9;
    color: var(--text-heading);
    text-align: left !important;
    /* Align left for cleaner look */
}

/* Table Design */
.table-xoso {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.table-xoso thead th {
    background-color: #f8fafc !important;
    /* Light Gray Header */
    color: #64748b !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #e2e8f0 !important;
    text-align: center;
    letter-spacing: 0.5px;
}

.table-xoso tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.table-xoso tbody tr:last-child {
    border-bottom: none;
}

.table-xoso tbody td {
    padding: 12px 10px;
    vertical-align: middle;
    font-size: 16px;
    color: #334155;
    text-align: center;
    border: none !important;
}

/* Prize Name Column */
.table-xoso tbody td:first-child {
    background-color: #ffffff !important;
    font-weight: 600;
    color: #94a3b8;
    font-size: 13px;
    width: 15%;
    /* Reduce width */
    text-align: left;
    padding-left: 20px;
    border-right: 1px solid #f1f5f9 !important;
}

/* Numbers Styling - Clean Typography */
.number-black-bold {
    display: inline-block;
   
    /* Monospace for numbers looks premium */
    font-weight: 600;
    color: #334155;
    font-size: 18px;
    padding: 0;
    margin: 0 10px;
    /* Space between numbers */
    background: transparent;
    border: none;
    box-shadow: none;
    letter-spacing: 1px;
}

/* Special Prize (Đặc Biệt) - Big Red Text */
.special-prize-lg {
    display: inline-block;
   
    font-weight: 800;
    color: #e11d48;
    /* Premium Red */
    font-size: 32px;
    letter-spacing: 2px;
    margin: 5px 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-shadow: none;
}

/* Prize 8 (Giải 8) - Large Red Text */
.special-prize-sm {
    display: inline-block;
    font-family: inherit;
    font-weight: 800;
    color: #e11d48;
    font-size: 24px;
    background: transparent;
    border: none;
    box-shadow: none;
    width: auto;
    height: auto;
}

/* Hover Effects */
.table-xoso tbody tr:hover {
    background-color: #f8fafc;
}



/* Special prize row - Highlight */
.table-xoso tbody tr:last-child {
    background-color: #fff1f2 !important;
}

.table-xoso tbody tr:last-child td {
    padding: 12px 8px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .container {
        padding: 0 8px;
    }

    .xsdp-card {
        border-radius: 8px;
    }

    .special-prize-lg {
        font-size: 20px;
        padding: 8px 15px;
        letter-spacing: 1px;
    }

    .special-prize-sm {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .number-black-bold {
        font-size: 14px;
        padding: 4px 8px;
        margin: 2px;
    }
}

/* Tablet & Mobile Layout Fixes */
@media (max-width: 768px) {
    .block-main-content {
        padding: 5px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        border-radius: 8px;
    }

    /* Force Tabs to stay on one line */
    #homeTabs,
    .nav-pills,
    .nav-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        padding-bottom: 5px !important;
        scrollbar-width: none;
        /* Firefox */
    }

    #homeTabs::-webkit-scrollbar,
    .nav-pills::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    #homeTabs .nav-item,
    .nav-pills .nav-item {
        flex: 0 0 auto !important;
    }

    #homeTabs .nav-link {
        padding: 8px 15px !important;
        font-size: 13px !important;
        margin-right: 5px !important;
        white-space: nowrap !important;
    }

    .table-xoso {
        width: 100% !important;
        table-layout: fixed !important;
        /* Force fixed columns to prevent expansion */
        margin: 0 !important;
        font-size: 11px;
    }

    .table-xoso thead th {
        font-size: 10px;
        padding: 6px 2px;
        white-space: normal;
        /* Allow header text to wrap */
        line-height: 1.2;
    }

    .table-xoso tbody td {
        padding: 6px 2px !important;
        font-size: 12px;
        word-break: break-all;
    }

    .table-xoso tbody td:first-child {
        width: 60px !important;
        min-width: 60px !important;
        font-size: 9px;
        padding: 6px 1px !important;
        text-transform: none;
        /* Save space */
    }

    /* Scaling Numbers for Small Screens - CRITICAL */
    .number-black-bold {
        font-size: 11px !important;
        padding: 2px 4px !important;
        margin: 1px !important;
        border-radius: 3px;
        display: inline-block;
    }

    .special-prize-lg {
        font-size: 13px !important;
        padding: 4px 6px !important;
        margin: 2px !important;
        letter-spacing: 0 !important;
        border-radius: 5px !important;
        box-shadow: 0 2px 5px rgba(185, 28, 28, 0.2) !important;
    }

    .special-prize-sm {
        width: 26px !important;
        height: 26px !important;
        font-size: 11px !important;
        margin: 1px !important;
        border-width: 1px !important;
    }
}

/* Extra Small Mobile (Portrait Mode - 375px and below) */
@media (max-width: 400px) {
    #homeTabs .nav-link {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .table-xoso thead th {
        font-size: 9px;
    }

    .table-xoso tbody td:first-child {
        width: 50px !important;
        min-width: 50px !important;
        font-size: 8.5px;
    }

    .number-black-bold {
        font-size: 10px !important;
        padding: 1px 3px !important;
        letter-spacing: -0.5px;
    }

    .special-prize-lg {
        font-size: 12px !important;
        padding: 3px 5px !important;
    }

    .special-prize-sm {
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
    }
}

/* ========================================
   NEW MOBILE HEADER STYLES
   ======================================== */

/* Horizontal Quick Links Bar */
.horizontal-menu-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
}

.horizontal-menu-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.chip-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50rem;
    /* Pill shape */
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chip-link i {
    margin-right: 6px;
    opacity: 0.8;
}

.chip-link:hover,
.chip-link:active {
    background: #ffffff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.chip-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 4px rgba(225, 29, 72, 0.4);
}

.chip-link.active i {
    color: #fff !important;
    opacity: 1;
}

/* Offcanvas Mobile Menu Styling */
.offcanvas-header {
    background: #fff;
}

.mobile-nav-links .nav-link {
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.mobile-nav-links .nav-link:hover {
    background-color: #fff1f2 !important;
    /* light rose bg */
    color: var(--primary-color) !important;
    padding-left: 20px !important;
    /* Slide effect */
}

.hover-light:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* Desktop Hover Effect */
.hover-effect {
    position: relative;
}

.hover-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.hover-effect:hover::after {
    width: 100%;
}

/* Toggler Icon Animation */
.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Live Dots Animation - Bigger and Cleaner */
.live-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1;
}

.live-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    margin: 0 2px;
    animation: liveDots 1.4s infinite ease-in-out both;
}

.live-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.live-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes liveDots {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* XSDP Live Icon Animation */
.xsdp-live-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

/* Static position for the flex button to avoid absolute mess */
.d-flex .xsdp-live-icon {
    position: static;
    transform: none;
}

.xsdp-live-icon i {
    display: block;
    width: 6px;
    height: 6px;
    background-color: #e11d48;
    /* Standard Red */
    border-radius: 50%;
    margin: 0 2px;
    opacity: 0;
    animation: xsdpLiveDots 1.4s infinite ease-in-out both;
}

.xsdp-live-icon.is-white i {
    background-color: #ffffff;
}

.xsdp-live-icon i:nth-child(1) {
    animation-delay: -0.32s;
}

.xsdp-live-icon i:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes xsdpLiveDots {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* XSDP Live Line Animation */
.xsdp-live-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f1f5f9;
    overflow: hidden;
    border-radius: 0 0 4px 4px;
    /* match parent radius */
}

.xsdp-live-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, transparent, #e11d48, transparent);
    transform: translateX(-100%);
    animation: liveLineRun 1.5s infinite ease-in-out;
}

@keyframes liveLineRun {
    0% {
        transform: translateX(-150%);
    }

    100% {
        transform: translateX(250%);
    }
}

/* Has Result State */
.btn.has-result {
    border-color: #198754 !important;
    /* Bootstrap success color */
    background-color: #f8fff9 !important;
    color: #198754 !important;
}

.btn.has-result:hover {
    background-color: #e9f7ef !important;
}

.btn.has-result i.fa-check-circle {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}