:root {
    --primary-color: rgba(113, 47, 154, 1);
    --white:#FFF;
    --theme-color: rgba(255, 111, 5, 1);
    --day-color: #12f0b8;
    --date-color: #f012be;
    --time-color: #f0d412;
    --item-color: #124af0;
}


.primary-color{
    color: var(--theme-color);
}


.theme-hr{
    height:  3px !important;
}

.auction-title{
    padding-top: 10px;
    font-size: 33px;
}

.btn-map-view
{
    width: 150px;
    height: 48px;
    padding: 10px;
    border-radius: 50px;
    border: 1px solid rgba(158, 158, 158, 1);
    opacity: 1;
    background: transparent;
    color: rgba(66, 66, 66, 1);
    transition: 0.5 all ease-in-out;
}

.btn-map-view:hover{
    border: 1px solid rgba(158, 158, 158, 1);
    background: var(--primary-color);
    color: var(--white);
}

 .auction-card {
    width: 100%;
    height: 98px;
    padding: 20px;
    gap: 101px;
    border-radius: 10px;
    opacity: 1;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 33px 72px 0px rgba(0, 0, 0, 0.1);
}


.state-box label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.state-select {
    width: 150px;
    border: none;
    border-radius: 5px;
    padding: 4px;
    outline: none;
}

.state-box i {
    margin-right: 10px;
}

.state-box .d-flex {
    align-items: center;
}
.search-box {
    border: none;
    border-left: 1px solid #ddd;
}

.search-box {
    padding: 10px;
    margin-left: 15px;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-box .auction-search-input {
    flex: 1;
    border: none;
    border-radius: 5px;
    padding: 8px;
    outline: none;

}

.search-box i {
    margin-right: 10px;
}

.status-pending { background: #fef3c7 !important; color: #92400e !important; }
.status-approved, .status-active { background: #dcfce7 !important; color: #15803d !important; }
.status-rejected, .status-canceled { background: #fee2e2 !important; color: #991b1b !important; }
.status-sent { background: #e0f2fe !important; color: #0369a1 !important; }
.status-quoted { background: #f3e8ff !important; color: #7e22ce !important; }
.status-closed { background: #f1f5f9 !important; color: #475569 !important; }

.btn-auction-search{
    width: 120px;
    height: 48px;
    padding: 10px;
    gap: 10px;
    border-radius: 10px;
    opacity: 1;
    background: var(--theme-color);
    color: var(--white);
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

.view-btn{
    height: 48px;
    padding: 15px;
    gap: 10px;
    border-radius: 8px;
    opacity: 1;
    background: var(--theme-color);
    color: var(--white);
    justify-content: center;
    align-items: center;
    margin: 5px 0px 20px 0px;
    text-transform: uppercase;
    z-index: 9;
}


@media (max-width: 768px) {
    .auction-card {
        width: 100%;
        display: block;
        position: relative;
        margin-bottom: 50px !important;
    }
    .auction-card .search-btn{
        position: absolute;
        top: 110px;
        left: 35%;

    }

    .state-select{
        width: 120px !important;
    }

    .search-box {
        border: none;
        border-left: none;
    }


    .search-box .auction-search-input {
        flex: 1;
        border: none;
        border-radius: 5px;
        padding: 8px;
        outline: none;
        width: 100%;

    }
}


/* Base styles for card */
.card {
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    background-color: rgb(233, 229, 229);
}


.title-overlay{
    position: absolute;
    top: 215px;
    left: 25px;
    width: 90%;
}

.title-overlay .title-content{
    color: var(--white);
    line-height: 5px;
}

.title-overlay .title-content h3
{
    font-size: 20px;
}

.card-overlay {
    position: absolute;
    top: 65%;
    left: 50%;
    width: 90%;
    max-width: 400px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 1);
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 8px 18px 0px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.time-count{
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 1);
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 8px 18px 0px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.overly-content {
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 10px 0px;
    border-left: 1px solid #ddd;
    box-sizing: border-box;
}

.overly-content p{
    color: #000 !important;
    line-height: 5px;
}

.overly-content:nth-child(1){
    border-left: none;
}

.card-content {
    padding: 75px 20px 0px 20px;
    background-color: #ffffff;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.card-content p{
    line-height: 7px;
}

/* Image styles */
.card-image {
    position: relative;
    width: 100%;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    z-index: 0;

}

.card-image img {
    width: 100%;
    height: 315px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover effect for image */
.card:hover .card-image img {
    transform: scale(1.1);
}


.card-love{
    position: absolute;
    top: 20px;
    left: 20px;
}

.card-love .love-btn{
    padding: 5px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: rgba(136, 136, 136, 1);
}

.love-btn{
    padding: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(136, 136, 136, 1);
    border: none;

}
.love-btn i{
    font-size: 16px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.card-love .love-btn i{
    font-size: 22px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.clickType2{
    height: 40px;
    font-size: 16px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.clickType2.active{
    background-color: #565E64 !important;
    color: var(--white);
    border: none;
    outline: none;
}

.clickType.active{
    background-color: #565E64 !important;
    color: var(--white);
    border: none;
    outline: none;
}

.round-card{
    width: 100%;
    height: 400px;
    border-radius: 20px !important;
    border: none;
    outline: none;
}

.round-card img{
    width: 100%;
    height: 100%;
}


.auction-info {
    margin-top: 50px;
    width: 100%;
    height: 150px;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.info-content {
    text-align: center;
}

.info-content p {
    margin: 7px 0;
    font-size: 18px;
    color: #333;
}

.info-content i {
    margin: 5px 0;
    font-size: 25px;
    color: #12f0b8;
}

#day-info i {
    color: var(--day-color);
}

#date-info i {
    color: var(--date-color);
}

#time-info i {
    color: var(--time-color);
}

#item-info i {
    color: var(--item-color);
}

.download-pdf {
    margin-top: 40px;
    width: 100%;
    border: 1px solid var(--day-color);
    display: flex;
    justify-content: space-between;
    background-color: rgba(218, 234, 233, 1);
    border-radius: 8px;
    padding: 10px;

}
.download-content {
    display: flex;
    justify-content: start;
}
.download-content p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
}
.download-content i {
    margin-top: 2px;
    margin-right: 10px;
}
.download-content i.fas.fa-download {
    color: #000;
    cursor: pointer;
}
.download-content i.fas.fa-file-pdf {
    margin-left: 10px;
    color: #dc3545;
}

.company-card{
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 20px;
    background-color: #FFFFFF;
    box-shadow: 0px 8px 18px 0px rgba(0, 0, 0, 0.1);
}

.company-card .logo{
    position: absolute;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background-color: #FFFFFF;
    transform: translate(25px, -85px);
}

.company-card .logo img{
    width: 100%;
    height: 100%;
}

.company-card img{
    width: 100%;
    height: 110px;
}

.company-card .content{
    padding: 20px;
}

.company-card .content h3{
    font-size: 20px;
}

.btn-share{
    background-color: #03A900;
    color: var(--white);
}

.btn-share:hover{
    background-color: #03A900;
    color: var(--white);
}

.property-card{
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid #ddd;
    padding: 15px;
}


.property-card .toggle-box {
    width: 67px;
    height: 98px;
    color: var(--white);
    background-color: var(--theme-color);
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
}

.property-card .toggle-title{
    font-size: 32px;
    text-align: left;
    align-items: center;
    display: flex;
    justify-content: center;
    padding-left: 20px;
}

.div-content{
    transition: 0.7s ease-in-out;
}

.div-card img{
    width: 100%;
    height: 300px;
}

.content-div .content-div-header{
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background-color: #FFF6EA;
    align-items: center;
    justify-content: center;
    padding: 0px 10px;
}


.time-card
{
    background-color:#FFF6EA;
    width: 100%;
    height: 115px;
    border: 1px solid #ddd;
    border-radius: 20px;
}



.bid{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 30px 0px;
}

.bid .react{
    width: 91px;
    height: 44px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background-color: #FFFFFF;
    padding: 10px 20px 10px 20px;
}

.bid:nth-of-type(3){
 border-left: 1px solid #ddd;
}

.bid:nth-of-type(4){
    border-left: 1px solid #ddd;
   }


.bid .react i{
    font-size: 16px;
}

.bid .react span{
    font-size: 16px;
}

.bidding-btn{
    padding: 10px 25px;
    background-color: var(--theme-color);
    border-radius: 50px;
    outline: none;
    border: none;
    text-align: center;
    color: var(--white);
}


@media (max-width: 768px) {
    .time-card{
        width: 100%;
        height: auto;
        display: block !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 30px 0px;
        border-left: none;
    }
    .bid {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 30px 0px;
        border-left: none;
    }

    .bid:nth-of-type(3),
    .bid:nth-of-type(4) {
        border-left: none;
    }

    .time-count{
        margin: 0px !important;
    }

    .clickType{
        font-size: 12px;
    }

    .clickType2{
        font-size: 12px;
    }

    .btn-map-view{
        width: 120px;
        height: 38px;
        font-size: 14px !important;
    }
}



/* events css */

.event-card{
    width: 100%;
    height: 390px;
    box-sizing: border-box;
    border: none;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 23px 0px 0px 42px gba(0, 0, 0, 0.09);
    border-radius: 20px;
}

.event-card .card-img{
    width: 100%;
    height: 200px;

}

.event-card .card-img img{
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background-position: center;
}

.event-content h3{
    font-size: 20px;
}

.event-content p{
    font-size: 14px;
    padding: 15px 0px;
}

.event-footer p:nth-of-type(1){
    font-weight: bold;
}


.custom-control{
    width: 100%;
    height: 40px;
    padding: 0px 5px;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 5px;
}


.event-card-2{
    width: 100%;
    height: 226px;
    box-sizing: border-box;
    border: none;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 23px 0px 0px 42px gba(0, 0, 0, 0.09);
    border-radius: 20px;
}

.event-card-2 img{
    width: 230px;
    height: 180px;
}

.event-card-2 h3{
    font-size: 20px;
    padding: 5px 0px;
}

/* Premium Vibrant Dashboard */
.stat-card-premium {
    background: #fff;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    border: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f9faff 100%);
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.bg-purple-vibrant { background: linear-gradient(45deg, #7347c1, #a36cf3); color: #fff; }
.bg-blue-vibrant { background: linear-gradient(45deg, #2563eb, #60a5fa); color: #fff; }
.bg-green-vibrant { background: linear-gradient(45deg, #059669, #34d399); color: #fff; }

.stat-info h3 {
    margin: 0;
    font-weight: 800;
    color: #1e1b4b;
    font-size: 1.8rem;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

[dir="rtl"] .dashboard-sidebar {
    right: 0;
    left: auto;
}

.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-menu {
    padding: 20px 0;
    flex-grow: 1;
}

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

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

[dir="rtl"] .sidebar-menu a {
    border-right: 0;
    border-left: 4px solid transparent;
}

.sidebar-menu a i {
    width: 25px;
    font-size: 1.1rem;
    margin-right: 10px;
}

[dir="rtl"] .sidebar-menu a i {
    margin-right: 0;
    margin-left: 10px;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.sidebar-menu a.active {
    background: rgba(255,255,255,0.15);
    border-right-color: #7347c1;
}

[dir="rtl"] .sidebar-menu a.active {
    border-left-color: #7347c1;
}

.sidebar-footer {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-footer img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-footer .user-info h6 {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
}

.sidebar-footer .user-info p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}


.event-time{
    width: 100%;
    height: 75px;
    background: rgba(239, 239, 239, 1);
    border-radius: 20px;
    display: flex;
    padding: 15px;
}

.event-time .overly-content{
    padding: 10px 0px 10px 22px;
}

.news-card{
    width: 100%;
    min-height: 426px;
    background: transparent;
}
.news-card .news-img{
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.news-card .news-img img{
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

.news-card .news-content h3{
    font-size: 20px;
    padding: 10px 0px;
}

.news-card .news-content p{
    font-size: 14px;
    padding: 4px 0px;
}

.news-card .news-content a{
    color: #000;
    font-weight: bold;
}

.w-s-100{
    width: 50% !important;
}


@media (max-width: 768px) {
    .w-s-100{
        width: 100% !important;
    }

    .event-card {
        width: 100%;
        height: auto;
    }
    .event-content h3{
        font-size: 14px;
    }
    .event-content p{
        font-size: 10px;
    }

    .event-card-2{
        width: 100% !important;
        height: auto;
        padding: 10px !important;
    }

    .event-card-2 img{
        width: 100% !important;
        height: 120px;
    }

    .event-card-2 .event-card-2-content{
        width: 70% !important;
    }

    .event-card-2 h3{
        font-size: 14px;
        padding: 2px 0px;
    }

    .event-card-2 p{
        font-size: 10px;
    }

    .event-time{
        width: 100%;
        height: 40px;
        display: flex;
        padding: 5px;
    }

    .event-time .overly-content{
        padding: 5px 0px 0px 10px;
    }

    .event-time .overly-content p{
        line-height: 2px;
        padding: 0px !important;
    }

    .event-footer{
        font-size: 11px;
    }

    .news-card{
        width: 100%;
        height: auto;
    }

    .news-card .news-content h3{
        font-size: 14px;
    }

    .news-card .news-content p{
        font-size: 10px !important;
    }

    .news-card .news-content a{
        font-size: 10px !important;
    }

}

.event-detail-card{
    width: 100% !important;
    height: 350px;
    overflow: hidden;
}

.event-detail-card img{
    width: 100% !important;
    height: 100%;
    background-size: cover;
}

.info-card{
    width: 100%;
    height: auto;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 15px;
    color: #000;
}

.info-card .row{
    padding: 10px 0px 7px 0px;
}

.any-ask-card{
    background-color: rgba(255, 255, 255, 1);
    box-sizing: border-box;
    border-radius: 20px;
    padding: 30px 100px;
}

.any-ask-card .c-form-control{
    background: rgba(228, 238, 246, 1);
}


@media (max-width: 768px) {
    .any-ask-card{
        padding: 30px 20px;
    }
}


/* Premium Product Card Styles */
.product-card-premium {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    overflow: hidden !important;
    background-color: #fff !important;
    height: 100%;
}

.product-card-premium:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

.product-card-premium .card-img-top {
    height: 180px !important;
    object-fit: cover !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.product-card-premium .card-body {
    padding: 1.5rem !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.product-card-premium .card-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 1.5rem !important;
    min-height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.4 !important;
}

.product-card-premium .btn-premium {
    background-color: #7347c1 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.8rem 1.2rem !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease !important;
    width: 100% !important;
}

.product-card-premium .btn-premium:hover {
    background-color: #5a359c !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .product-card-premium .card-body {
        padding: 1rem !important;
    }
    .product-card-premium .btn-premium {
        padding: 0.6rem 0.5rem !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }
    .product-card-premium .card-title {
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
    }
}

/* B2B Marketplace Dashboard Styles */
.b2b-dashboard {
    background: #f8f9fa;
    min-height: 100vh;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

/* Premium Vibrant Dashboard */
.stat-card-premium {
    background: #fff;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    border: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f9faff 100%);
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.bg-purple-vibrant { background: linear-gradient(45deg, #7347c1, #a36cf3) !important; color: #fff !important; }
.bg-blue-vibrant { background: linear-gradient(45deg, #2563eb, #60a5fa) !important; color: #fff !important; }
.bg-green-vibrant { background: linear-gradient(45deg, #059669, #34d399) !important; color: #fff !important; }

.stat-info h3 {
    margin: 0;
    font-weight: 800;
    color: #1e1b4b;
    font-size: 1.8rem;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.dashboard-stat-card {
    padding: 25px;
    text-align: center;
}

.dashboard-stat-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.stat-primary { background: rgba(115, 71, 193, 0.1); color: #7347c1; }
.stat-success { background: rgba(40, 167, 69, 0.1); color: #28a745; }
.stat-warning { background: rgba(255, 193, 7, 0.1); color: #ffc107; }

.rfq-list-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.rfq-list-item:last-child {
    border-bottom: none;
}

.notification-bell {
    position: relative;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
}


.status-pending   { background: #fef3c7; color: #92400e; }
.status-approved  { background: #dcfce7; color: #15803d; }
.status-active    { background: #dcfce7; color: #15803d; }
.status-rejected  { background: #fee2e2; color: #991b1b; }
.status-canceled  { background: #fee2e2; color: #991b1b; }
.status-sent      { background: #e0f2fe; color: #0369a1; }
.status-quoted    { background: #f3e8ff; color: #7e22ce; }
.status-closed    { background: #f1f5f9; color: #475569; }
.status-accepted  { background: #dcfce7; color: #15803d; }

/* ===== DASHBOARD LAYOUT ===== */
:root {
    --sidebar-width: 270px;
    --navbar-height: 70px;
    --primary-gradient: linear-gradient(45deg, #7347c1, #a36cf3);
    --sidebar-gradient: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
}

.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f1f5f9;
}

/* Sidebar - Mobile Default (Hidden) */
.dashboard-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-gradient);
    z-index: 1200;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-100%); /* Left side by default */
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
}

[dir="rtl"] .dashboard-sidebar {
    transform: translateX(100%);
}

.dashboard-sidebar.show {
    transform: translateX(0) !important;
}

/* Sidebar Toggle Backdrop */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1150;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

/* Header - Mobile First */
.full-width-navbar {
    min-height: var(--navbar-height);
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
    position: sticky;
    top: 0;
    z-index: 1000; /* Lower than Modal (1055) */
    display: flex;
    align-items: center;
    width: 100%;
}

.full-width-navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    width: 100%;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img { 
    height: 30px; 
    max-width: 120px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo-img { height: 40px; max-width: 180px; }
    .full-width-navbar .container-fluid { padding: 0 24px; }
}

/* Action Button - Mobile Adjustments */
.dashboard-action-btn {
    background: var(--primary-gradient);
    color: #fff !important;
    border-radius: 12px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(115,71,193,0.3);
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    width: 100%;
    max-width: 100vw;
    padding: 15px;
    margin: 0; /* Base margin for mobile */
    overflow-x: hidden;
}

.dashboard-body {
    width: 100%;
    margin: 0 auto;
}

/* Responsive Grid for Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card-premium {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #f0f4f8;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Responsive Table Wrapper */
.responsive-table-container {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f4f8;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    max-width: 100%;
}

.table {
    margin-bottom: 0;
    min-width: 600px; /* Force scroll on very small screens for tables */
}

/* DESKTOP REFINEMENTS (min-width: 1024px) */
@media (min-width: 1024px) {
    .dashboard-wrapper {
        flex-direction: row;
        padding-top: var(--navbar-height);
    }

    .full-width-navbar {
        position: fixed;
        width: 100%;
        height: var(--navbar-height);
        padding: 0;
    }

    .dashboard-sidebar {
        transform: translateX(0) !important;
        top: var(--navbar-height);
        height: calc(100vh - var(--navbar-height));
        box-shadow: none;
        border-right: 1px solid rgba(0,0,0,0.05);
    }

    [dir="rtl"] .dashboard-sidebar {
        border-right: none;
        border-left: 1px solid rgba(0,0,0,0.05);
    }

    .dashboard-content {
        margin-left: var(--sidebar-width) !important;
        padding: 30px;
    }

    [dir="rtl"] .dashboard-content {
        margin-left: 0 !important;
        margin-right: var(--sidebar-width) !important;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .logo-img { height: 40px; }
    
    .dashboard-action-btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }
}

/* TABLET REFINEMENTS (min-width: 768px) and max 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-content {
        padding: 24px;
    }
}

/* Sidebar Inner Components */
.sidebar-menu { padding: 15px 0; flex-grow: 1; }
.sidebar-menu ul { list-style: none; padding: 0; margin: 0; }
.sidebar-menu li { margin: 2px 10px; }
.sidebar-menu a {
    display: flex; align-items: center; gap: 12px; padding: 11px 18px;
    color: rgba(255,255,255,0.65); text-decoration: none; border-radius: 12px;
    font-size: 0.92rem; transition: all 0.25s ease;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(255,255,255,0.1); color: #fff;
}
.sidebar-menu a.active { background: rgba(167,139,250,0.2); font-weight: 600; }

.sidebar-footer {
    padding: 18px 20px; background: rgba(0,0,0,0.25);
    display: flex; align-items: center; gap: 12px;
}
.sidebar-footer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sidebar-footer .user-info h6 { margin: 0; font-size: 0.85rem; color: #fff; }
.sidebar-footer .user-info p { margin: 0; font-size: 0.7rem; color: rgba(255,255,255,0.4); }

/* Global Utilities to prevent overflow */
* { box-sizing: border-box; }
body { overflow-x: hidden; width: 100%; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Stacked Table for Mobile */
@media (max-width: 767px) {
    .responsive-table-stack thead { display: none; }
    .responsive-table-stack tr { 
        display: block; 
        margin-bottom: 15px; 
        border: 1px solid #eee; 
        border-radius: 12px; 
        padding: 10px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    }
    .responsive-table-stack td:not(.text-center) { 
        display: flex !important; 
        justify-content: space-between !important; 
        align-items: center !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid #edf2f7 !important;
        min-height: 45px;
    }
    .responsive-table-stack td.text-center {
        display: block !important;
        padding: 30px 0 !important;
    }
    .responsive-table-stack td:last-child { border-bottom: none !important; }
    .responsive-table-stack td::before { 
        display: none !important;
    }
    .responsive-table-stack .mobile-label {
        display: block !important;
        font-weight: 800 !important; 
        color: #2d3748 !important;
        min-width: 120px;
        flex-shrink: 0;
        text-align: right;
    }
    [dir="rtl"] .responsive-table-stack .mobile-label {
        text-align: right;
        margin-left: 15px;
    }
    .responsive-table-container { overflow-x: visible !important; }
}

/* Desktop: hide mobile labels */
@media (min-width: 768px) {
    .mobile-label {
        display: none !important;
    }
}

/* Header Overlap Fix */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    max-width: 75%;
}

.logo-img {
    height: 25px !important;
    width: auto !important;
    max-width: 90px !important;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo-img { height: 40px !important; max-width: 180px !important; }
}

/* ==========================================================================
   Responsive Stability & Global Fixes (Fix for Deployment Issues)
   ========================================================================== */

html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 100vw !important;
}

img {
    max-width: 100%;
    height: auto;
}

/* Fix for layout shifts from transforms */
.animate-fade-in, 
.animate-fade-in-delayed,
.premium-glass-card:hover,
.premium-glass-card-light:hover {
    will-change: transform, opacity;
}

/* Scroll Lock when mobile menu open */
body.offcanvas-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Sidebar Width & Alignment */
.offcanvas-mobile-menu {
    width: 85% !important;
    max-width: 320px !important;
}

/* Fix for Partners page bottom space */
.partners-main-content,
.execution-ecosystem-section {
    position: relative;
    overflow: hidden !important;
}

/* RTL Adjustments */
[dir="rtl"] .offcanvas-end {
    right: 0;
    left: auto;
    transform: translateX(100%);
}

[dir="rtl"] .offcanvas.show {
    transform: none;
}

/* ===== Real-time Form Validation Styles ===== */
.val-input.is-invalid {
    border-color: #dc3545 !important;
    background-image: none !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
}

.input-group .val-input.is-invalid {
    border-color: #dc3545 !important;
    z-index: 1;
}

.val-error {
    font-size: 0.82rem;
    font-weight: 500;
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: valFadeIn 0.25s ease;
}

.val-error::before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.78rem;
}

@keyframes valFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Focus styling when valid */
.val-input:focus:not(.is-invalid) {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15) !important;
}

/* Input group focus */
.input-group .val-input:focus:not(.is-invalid) {
    border-color: #198754 !important;
}
