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

/* Global Reset - Prevent Horizontal Scroll */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

/* Modern Dashboard Styles */
.dashboard-modern {
    background: #f7f8fd;
    padding: 32px 24px;
    min-height: 100vh;
}
.dashboard-header {
    margin-bottom: 24px;
}
.dashboard-greeting {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.dashboard-sub {
    color: #888;
    font-size: 1.1rem;
}
.dashboard-header-actions {
    gap: 16px;
}
.dashboard-search {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 1rem;
    width: 260px;
    margin-right: 16px;
}
.dashboard-date-filter {
    position: relative;
    display: flex;
    align-items: center;
}
.dashboard-date-input {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 32px 8px 12px;
    font-size: 1rem;
    background: #fff;
}
.dashboard-date-icon {
    position: absolute;
    right: 10px;
    font-size: 1.3rem;
    color: #888;
    pointer-events: none;
}
.dashboard-cards {
    gap: 24px;
}
.dashboard-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 24px 32px;
    min-width: 220px;
    flex: 1;
    margin-right: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dashboard-card:last-child {
    margin-right: 0;
}
.dashboard-card-title {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.dashboard-card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.dashboard-card-trend {
    font-size: 1rem;
    margin-left: 8px;
    font-weight: 600;
}
.dashboard-card-trend.up {
    color: #1ecb4f;
}
.dashboard-card-trend.down {
    color: #ff4d4f;
}
.dashboard-card.card-green {
    border-left: 6px solid #1ecb4f;
}
.dashboard-card.card-blue {
    border-left: 6px solid #3b82f6;
}
.dashboard-card.card-red {
    border-left: 6px solid #ff4d4f;
}
.dashboard-card.card-purple {
    border-left: 6px solid #7c3aed;
}
.dashboard-card-sub {
    color: #aaa;
    font-size: 0.95rem;
}
.dashboard-main-content {
    gap: 32px;
}
.dashboard-charts {
    min-width: 0;
}
.dashboard-chart-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 24px 32px;
    margin-bottom: 18px;
}
.dashboard-chart-title {
    font-size: 1.2rem;
    font-weight: 600;
}
.dashboard-chart-date {
    color: #888;
    font-size: 1rem;
}
.dashboard-growth-cards {
    gap: 18px;
}
.dashboard-growth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 18px 24px;
    flex: 1;
    min-width: 0;
}
.dashboard-growth-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.dashboard-growth-flags span {
    display: inline-block;
    margin-right: 10px;
    font-size: 1rem;
    background: #f7f8fd;
    border-radius: 6px;
    padding: 2px 8px;
}
.dashboard-recent-orders {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 24px 32px;
    min-width: 350px;
}
.dashboard-recent-orders-header {
    margin-bottom: 18px;
}
.dashboard-recent-orders-title {
    font-size: 1.2rem;
    font-weight: 600;
}
.dashboard-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}
.dashboard-orders-table th {
    color: #888;
    font-size: 1rem;
    font-weight: 500;
    padding-bottom: 8px;
}
.dashboard-orders-table td {
    background: #f7f8fd;
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 1rem;
    vertical-align: middle;
}
.order-id {
    color: #aaa;
    font-size: 0.9rem;
}
.order-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
}
.order-status.delivered {
    background: #e6f9f0;
    color: #1ecb4f;
    border: 1px solid #1ecb4f;
}
.order-status.intransit {
    background: #fffbe6;
    color: #f7b500;
    border: 1px solid #f7b500;
}
.order-status.inreview {
    background: #fff0f0;
    color: #ff4d4f;
    border: 1px solid #ff4d4f;
}
@font-face {
    font-family: 'Open Sans';
    font-display: swap;
    src: url('../fonts/Poppins-Regular.otf');
}

:root {
    --darkpurple: #8C2C8C;
    --lightpurple: #3C3C4E;
    --white: #ffffff;
    --lightgrey: #BDBDCC;
    --lightorange: #FDE1B4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans" !important;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100px;
    background: var(--white);
    padding: 6px 14px;
    z-index: 99;
    transition: all 0.5s ease;
}

.sidebar .logo-details {
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar .logo-details .icon {
    opacity: 0;
    transition: all 0.5s ease;
}

.sidebar .logo-details .logo_name {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.5s ease;
}

.sidebar.open .logo-details .icon,
.sidebar.open .logo-details .logo_name {
    opacity: 1;
}

.sidebar .logo-details #btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 22px;
    transition: all 0.4s ease;
    font-size: 23px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s ease;
}

.sidebar.open .logo-details #btn {
    text-align: right;
}

.sidebar i {
    color: #000;
    height: 60px;
    min-width: 50px;
    font-size: 28px;
    text-align: center;
    line-height: 60px;
}
.active_sidebar_i{
    color: #8C2C8C !important;
}

.sidebar .nav-list {
    margin-top: 20px;
    height: 100%;
}
.nav-list>li>img{
    height: 15px;
    margin: 10px;
}
.navlist li a i{
    background: #8C2C8C;
}
.sidebar li {
    position: relative;
    margin: 8px 0;
    list-style: none;
}

.sidebar li .tooltip {
    position: absolute;
    top: -20px;
    left: calc(100% + 15px);
    z-index: 3;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: 0s;
}

.sidebar li:hover .tooltip {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    top: 50%;
    left: 95%;
    transform: translateY(-50%);
}

.sidebar li:hover .tooltip::before {
    content: '';
    border-width: 5px;
    border-style: solid;
    left: -10px;
    top: 10px;
    position: absolute;
    border-color: transparent #fff transparent transparent;
}

.sidebar.open li .tooltip {
    /* display: none; */
}
.question_name_csv{
    font-weight: bold;
    margin: 20px 0px;
    font-size: 18px;
    line-height: 25px;
    color: #3C3C4E;
}

.sidebar input {
    font-size: 15px;
    color: #FFF;
    font-weight: 400;
    outline: none;
    height: 50px;
    width: 100%;
    width: 50px;
    border: none;
    border-radius: 12px;
    transition: all 0.5s ease;
    background: #1d1b31;
}

.sidebar.open input {
    padding: 0 20px 0 50px;
    width: 100%;
}

.sidebar .bx-search {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 22px;
    background: #1d1b31;
    color: #FFF;
}

.sidebar.open .bx-search:hover {
    background: #1d1b31;
    color: #FFF;
}

.sidebar .bx-search:hover {
    background: #FFF;
    color: #11101d;
}

.sidebar li a {
    display: flex;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s ease;

}

.sidebar li a:hover {
    /* background: #FFF; */
}

.sidebar li a .links_name {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.sidebar.open li a .links_name {
    opacity: 1;
    pointer-events: auto;
}

.sidebar li a:hover .links_name,
.sidebar li a:hover i {
    transition: all 0.5s ease;
    color: #11101D;
}

.sidebar li i {
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    border-radius: 12px;
}

.sidebar li.profile {
    position: fixed;
    height: 60px;
    width: 78px;
    left: 0;
    bottom: -8px;
    padding: 10px 14px;
    background: #1d1b31;
    transition: all 0.5s ease;
    overflow: hidden;
}

.sidebar.open li.profile {
    width: 250px;
}

.sidebar li .profile-details {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.sidebar li img {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
}

.sidebar li.profile .name,
.sidebar li.profile .job {
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
}

.sidebar li.profile .job {
    font-size: 12px;
}

.sidebar .profile #log_out {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    /* background: #1d1b31; */
    width: 100%;
    height: 60px;
    line-height: 60px;
    border-radius: 0px;
    transition: all 0.5s ease;
}

.sidebar.open .profile #log_out {
    width: 50px;
    background: none;
}

.home-section {
    position: absolute;
    background: #FFFFFF;
    min-height: 100vh;
    top: 0;
    left: 95px;
    right: 20px;
    width: auto;
    transition: all 0.5s ease;
    z-index: 2;
    overflow-x: hidden;
}

.sidebar.open~.home-section {
    left: 250px;
    right: 20px;
    width: auto;
}

.home-section .text {
    display: inline-block;
    color: #11101d;
    font-size: 25px;
    font-weight: 500;
    margin: 18px
}

.sidebar img {
   
    height: auto;

}

.top_right_fixed_nav {
    display: grid;
   
    justify-content: end;
    align-content: center;

}
.search_nav{
    margin-top:10px;
    position: relative;
    
}
.search_nav input{
    height: 33px;
    background-color: #E8E8ED;
    border-radius: 10px;
    padding-left: 20px;
    width: 255px;
    border: 1px solid #BDBDCC;
}

.search_nav i{
    position: absolute;
    left: 5px;
    top: 9px;
}
.nav_content {
    list-style-type: none;
    display: flex;
   
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;

}

.nav_content li {
    margin: 10px;
}
.nav_content li img{
    width: 30px;
    height: auto;
    margin-top: 10px;
}
.down_img{
    width: 10px !important;
    position: absolute;
    top: 0px;
    right: -14px;
}

.profile_name_acronym {
    border-radius: 50%;
    background-color: #DCDCDC;
    color: #878787;
    font-size: 21px;
    height: 50%;
    padding: 8px;
}
.profile_name{
    font-size: 15px;
    position: relative;
    top: 5px;
    left: 0px;
}
.profile_dropdown{
    display: none;
    position: absolute;
    height: 100px;
    left: -116px;
    top: 23px;
    width: 219px;
    background-color: #F6F6F8;
    box-shadow: 0px 8px 50px rgba(0, 0, 0, 0.1);
}
.profile_dropdown a{
    color: var(--lightgrey) !important;
    display: block;
    color: #6F6F90;
    font-size: 14px;
    background-color: #f8f6f8;
    height: 50px;
    margin-left: 0px;
    text-align: center;
    text-decoration: none !important;
   
}.profile_dropdown a:hover{
   
    background-color: #fff;
    width: 100%;
   
}
.profile_name:hover .profile_dropdown{
   display: block;
}
.profile_dropdown a img{
    width: 30px;
    padding: 6px;
}
.admin_title {
    color: var(--darkpurple);
    border: 1px solid var(--darkpurple);
    border-radius: 10px;
    background-color: #FAEFFA;
    padding: 2px;
    font-size: 10px;
    width: 73px;
}
.search_input {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 22px;
    color: #000;
}
.greeting_tab {
   
    margin-left: 50px;
}
.greeting_time {
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 44px;
    color: #3C3C4E;
}
.question_review {
    color: var(--lightgrey);
    font-weight: bold;
    margin: 10px 0;
}
.question_review a {
    text-decoration: none;
    font-weight: lighter;
    padding-left: 10px;
    color: #8C2C8C;
}
.statistics_box {
    background: #fff;
    box-shadow: 0px 2px 4px rgba(60, 60, 78, 0.07);
    border-radius: 10px;
    padding: 10px 10px;
    border: 1px solid #E8E8ED;
    margin-bottom: 100px;

}
.statistics_tab {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 20px;

}
.tab_data {
    height: 100px;
    width: 300px;
    position: relative;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(60, 60, 78, 0.07);
    padding: 20px;
    background: var(--white);
}
.tab_data img {
    display: inline-block;
    width: 70px;
}
.tab_data .content {
    width: 200px;
    color: #A9A9BC;
    padding-left: 20px;

}
.tab_title {
    top: 21px;
    right: 24px;
    position: absolute;
    font-size: 14px;
    color: #A9A9BC;
    text-transform: capitalize;
}
.tab_figure {
    top: 53px;
    right: 62px;
    position: absolute;
    font-size: 24px;
    color: #3C3C4E;
}
.user_graph {
    margin-left: 50px;
    margin-top: 60px;
    padding: 40px;
    width: 60%;
    background-color: #fff;
}
.user_graph_title {
    font-weight: bold;
    margin-right: 20px;
}

.user_graph_title img {
    margin-left: 10px;
}

.user_graph_time {
    margin-top: 20px;
}

.user_graph_time span {
    
    color: #A9A9BC;
    border-radius: 10px;
    background-color: #F6F6F8;
    padding: 5px;
    margin: 5px;
    font-size: 10px;

}
.user_graph_time span:active {
    color: var(--darkpurple);
    border: 1px solid var(--darkpurple);
    border-radius: 10px;
    background-color: #FAEFFA;
    padding: 5px;
    margin: 5px;
}

.user_graph_section img {
    height: auto;
}

.quest_img {
    position: relative;
    right: -160px;
    top: -59px;
}
.back_btn {
    position: relative;
    top: 20px;
    left: 20px;
}

.back_btn a {
    font-style: normal;
    font-size: 16px;
    line-height: 22px;
    color: #8C2C8C;

}
.edit_title span{
    font-weight: bold;
    font-size: 17px;
    line-height: 22px;
    color: #3C3C4E;
}

.back_btn a:hover {
    text-decoration: underline;
    color: #8C2C8C;
}

.back_btn a img {
    height: auto;
    width: 15px;
}
ol, ul {
    padding-left: 0rem !important; 
}
.settings_box{
    background: #FFFFFF;
    box-shadow: 0px 2px 4px rgba(60, 60, 78, 0.07);
    border-radius: 2px;
    margin: 20px 40px;
    padding: 10px 20px;
}
.setting_box_title{
    color: #3C3C4E;
    font-size: 20px;
    font-weight: bold;
}
.settings_childbox{
    border: 0.5px solid #BDBDCC;
    border-radius: 2px;
    margin: 20px 0;
    padding: 10px;
    position: relative;
}
.settings_childbox img{
    height: 25px;
}
.settings_childbox span{
    color: #6F6F90;
    font-weight: bold;
    margin-left: 10px;
}
.settings_childbox p{
    margin-left: 49px;
    color: #89899A
}
.toggle{
    position: absolute;
    right: 19px;
    top: 5px;
}
.toggle_img{
    position: absolute;
    right: 30px;
    top: 30px;
}
.toggle_img img{
    width: 35px;
    height: 35px;
}
/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    right: 23px;
    top: 29px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    top: 2px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #8C2C8C;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #8C2C8C;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(35px);
    -ms-transform: translateX(35px);
    transform: translateX(35px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
    width: 67px;
    height: 28px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

/* ===== RESPONSIVE STYLES ===== */

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Hamburger Menu Icon */
.sidebar .logo-details #btn {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 23px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s ease;
    color: #fff;
    display: none;
}

/* Close Sidebar Button */
.sidebar #closeSidebarBtn {
    position: absolute;
    top: 75px;
    right: 16px;
    font-size: 26px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    display: none;
}

.sidebar #closeSidebarBtn:hover {
    color: #e5e7eb;
    transform: rotate(90deg);
}

/* Tablet and Mobile - 992px and below */
@media (max-width: 992px) {
    /* Show hamburger menu */
    .sidebar .logo-details #btn {
        display: block;
    }
    
    /* Hide sidebar by default on mobile */
    .sidebar {
        left: -250px;
    }
    
    /* Show sidebar when open */
    .sidebar.open {
        left: 0;
        z-index: 99;
    }
    
    /* Adjust home-section for hidden sidebar */
    .home-section, .body-section {
        left: 0;
        width: 100%;
    }
    
    /* Hide tooltips on mobile */
    .sidebar li .tooltip {
        display: none;
    }
    
    /* Hide link text on mobile - show icons only */
    .sidebar li a .links_name,
    .sidebar.open li a .links_name {
        display: none;
    }
}

/* Tablet - 768px to 992px */
@media (max-width: 768px) {
    /* Dashboard cards stack */
    .dashboard-cards {
        flex-direction: column;
    }
    
    .dashboard-card {
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    /* Tables scroll horizontally */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
}

/* Mobile - 576px and below */
@media (max-width: 576px) {
    /* Reduce padding on main content */
    .home-section, .body-section {
        padding: 12px 16px;
    }
    
    /* Dashboard header */
    .dashboard-greeting {
        font-size: 1.5rem;
    }
    
    .dashboard-sub {
        font-size: 0.95rem;
    }
    
    /* Buttons full width on mobile */
    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 16px;
    }
    
    .input-modern,
    .select-modern,
    .textarea-modern {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Modals */
    .modal-modern {
        width: 95%;
        max-width: 95%;
        margin: 20px auto;
    }
    
    .modal-header-modern,
    .modal-body-modern,
    .modal-footer-modern {
        padding: 16px;
    }
}

/* Small Mobile - 420px and below */
@media (max-width: 420px) {
    .sidebar li .tooltip {
        display: none;
    }
    
    /* Further reduce spacing */
    .home-section, .body-section {
        padding: 8px 12px;
    }
    
    /* Stack all elements */
    .d-flex {
        flex-direction: column;
    }
    
    /* Card spacing */
    .dashboard-card {
        padding: 16px 20px;
    }
    
    .dashboard-card-value {
        font-size: 1.6rem;
    }
    
    /* Table font size */
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 8px 6px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        overflow-y: auto;
    }
    
    .modal-modern {
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 420px) {

    .sidebar li .tooltip {
        display: none;
    }

}
.untitled_box_input p {
    display: inline-block;
   color:  #8C2C8C;
    height: 27px;
}
.untitled_box_input p:focus{
    border: 2px solid purple !important;
}

#text::selection {
    background-color: #8C2C8C;
  }

.untitled_box_input{
    text-align: left;
}
.untitled_box_input img{
    width: 16px !important;
    height: 17px !important;
    position: absolute;
}
.untitled_box_input_file{
    text-align: left;
}
.untitled_box_input_file img{
    width: 16px !important;
    height: 17px !important;
    position: absolute;
}
.untitled_box_input_file p{
    display: inline-block;
    margin-left: 27px;
}
.dropdown {
    display: inline-block;
    position: relative;
  }
  
  .dropdown-text {
    cursor: pointer;
    display: inline-block;
    font-size: 17px;
    color: #8C2C8C;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    z-index: 1;
  }
  
  .down-arrow {
    border-top: 6px solid #8C2C8C;
      border-right: 6px solid transparent;
      border-left: 6px solid transparent;
      display: inline-block;
      transform: rotate(359deg);
      margin-left: 5px;
      
  }
  
  .dropdown-content.show {
    display: block;
    background-color: #ffffff;
    height: 200px;
    width: 131px;
    position: absolute;
    left: -48px;
    border-radius: 5px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
  }
  
  .down-arrow.open {
    transform: rotate(180deg);
  }