/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

:root {
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f4f6f9;
    --bs-dark: #2b2d3b;
    --bs-font-sans-serif: 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";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-body-font-family: 'Nunito Sans', ui-sans-serif, system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue";
    --bs-body-font-size: .875rem;
    --bs-body-bg: #F4F5F7;
    --bs-border-color:#e2e7f1;
    --bs-secondary-bg: #ffffff;
    --bs-border-radius: 0.25rem;
    --input-font-size: 14px;
    --bs-body-font-size: 14px;
}
.card{
    --bs-card-spacer-y: 1.5rem;
    --bs-card-spacer-x: 1.5rem;
    --bs-card-border-color: red;
    --bs-card-border-width:0;
    --bs-card-border-radius: 0.25rem;
    --bs-card-box-shadow: 0px 0px 35px 0px rgba(154, 161, 171, 0.15);
    --bs-card-cap-bg: var(--bs-secondary-bg);
    --bs-card-bg: #fff;
}
.card-title {
    font-size: 18px;
    margin-bottom: 0;
}
.table{
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-striped-bg: rgba(168,181,209,0.05);
}
a { text-decoration: none; }
/* choices */
.choices__inner {
    border-radius: 0;
}
.choices__list--multiple .choices__item {
    background-color: var(--bs-primary);
    border: 1px solid var(--bs-primary);
    border-radius: 0;
}

/* Button loading states - using Bootstrap classes */
.btn-loading {
    display: inline-flex;
    align-items: center;
}

/* Container Menu Styles */
.container-menu {
    min-height: 100vh;
    display: flex;
}
.container-content {
    margin: 20px;
    flex: 1 0 0%;
    min-width: 0; /* Important for flex wrapping */
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    width: 256px;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #fff;
    padding: 14px;
    border-radius: 30px;
    transition: all 0.3s;
    margin: 20px 0 20px 20px;
    font-family: "Inter", sans-serif;
    white-space: nowrap;
    z-index: 1000;
    top:20px;
}

/* Sidebar Header */
.head {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f6f6f6;
}

/* User Image Styling */
.user-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
}

.user-img img {
    width: 100%;
    object-fit: cover;
}

/* User Details */
.user-details .title,
.menu .title {
    font-size: 10px;
    font-weight: 500;
    color: #757575;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.user-details .name {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Navigation Container */
.nav_cont {
    flex: 1;
}

/* Menu Styles */
.menu ul {
    padding: 0;
}

.menu ul li {
    position: relative;
    list-style: none;
    margin-bottom: 5px;
}

.menu ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #757575;
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.menu ul li>a:hover,
.menu ul li.active>a {
    color: #000;
    background-color: #f6f6f6;
}

.menu ul li .icon {
    font-size: 20px;
}

.menu ul li .text {
    flex: 1;
    text-overflow: ellipsis;
    overflow: hidden;
}

.menu ul li .arrow {
    font-size: 14px;
    transition: all 0.3s;
}

.menu ul li.active .arrow {
    transform: rotate(180deg);
}

.menu .sub-menu {
    display: none;
    margin-left: 20px;
    padding-left: 20px;
    padding-top: 5px;
    border-left: 1px solid #f6f6f6;
}

.menu .sub-menu li a {
    padding: 10px 8px;
    font-size: 12px;
}

/* Menu Grouping */
.menu:not(:last-child) {
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f6f6f6;
}

/* Menu Button */
.menu-btn {
    position: absolute;
    right: 0;
    top: 32px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #757575;
    /*border: 2px solid #f6f6f6;*/
    background-color: #fff;
    z-index: 10;
}

.menu-btn:hover i {
    color: #000;
}

.menu-btn i {
    transition: all 0.3s;
}

/* Sidebar Active State (Desktop Collapsed) */
.sidebar.active {
    width: 72px;
}

.sidebar.active .menu-btn i {
    transform: rotate(180deg);
}

.sidebar.active .user-details {
    display: none;
    transition: all 0.5s;
}

.sidebar.active .menu .title {
    text-align: center;
}

.sidebar.active .menu ul li .arrow {
    display: none;
}

.sidebar.active .menu>ul>li>a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.active .menu>ul>li>a .text {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    /*padding: 10px;*/
    border-radius: 4px;
    color: #fff;
    background-color: #000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 2;
}

.sidebar.active .menu>ul>li>a .text::after {
    content: "";
    position: absolute;
    left: -5px;
    top: 20%;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    background-color: #000;
    transform: rotate(45deg);
    z-index: -1;
}

.sidebar.active .menu>ul>li>a:hover .text {
    left: 50px;
    opacity: 1;
    visibility: visible;
}

.sidebar.active .menu .sub-menu {
    position: absolute;
    top: 0;
    left: 20px;
    width: 200px;
    border-radius: 20px;
    padding: 10px 20px;
    border: 1px solid #f6f6f6;
    background-color: #fff;
    box-shadow: 0px 10px 8px rgba(0, 0, 0, 0.1);
}

.pagepreview {
    height: 100vh;
    width: 100%;
}


/*-----------------------------------------------
|   Backgrounds
-----------------------------------------------*/
.bg-holder {
    position: absolute;
    width: 100%;
    min-height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    background-repeat: no-repeat;
    z-index: 0;
}

/*-----------------------------------------------
|   Avatar
-----------------------------------------------*/
.avatar {
    --bs-avatar-size: calc(2.8125rem + var(--bs-border-width)* 2);
    --bs-avatar-border-radius: 50rem;
    --bs-avatar-font-size: 0.875rem;
    --bs-avatar-bg: var(--bs-tertiary-bg);
    --bs-avatar-color: var(--bs-body-color);
    --bs-avatar-group-offset: calc(var(--bs-avatar-size) / -5);
    --bs-avatar-group-outline-width: calc(var(--bs-avatar-size) / 15);
    --bs-avatar-status-border-width: var(--bs-border-width);
    --bs-avatar-status-border-color: var(--bs-border-color);
    align-items: center;
    background-color: var(--bs-avatar-bg);
    border-radius: var(--bs-avatar-border-radius);
    color: var(--bs-avatar-color);
    display: inline-flex;
    font-size: var(--bs-avatar-font-size);
    height: var(--bs-avatar-size);
    justify-content: center;
    min-width: var(--bs-avatar-size);
    position: relative;
    text-transform: uppercase;
    width: var(--bs-avatar-size);
 }
.avatar-img {
    border-radius: inherit;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
}
/*-----------------------------------------------
|   authentication
-----------------------------------------------*/
.auth-max-width {
    width: 100%;
    max-width: 450px;
}
/*-----------------------------------------------
|   Data Table
-----------------------------------------------*/
.table thead th:first-child {
    border-radius: 8px 0 0 8px;
}
.table thead th:last-child {
    border-radius: 0 8px 8px 0;
}
.table tr,
.table td {
    border-style: dashed;
    vertical-align: middle;
}
.dataTable>thead {
    background-color: var(--bs-light);
}
.dataTable>thead>tr>th {
    border: none;
}
.grid_image {
    width: 80px !important;
}
.grid_image div {
    display: flex !important;
    width: 60px; 
    height: 60px; 
    overflow: hidden;
    align-items: center !important;
    justify-content: center !important;
}
.grid_image div img {
    width: 100%; height: 100%; 
    object-fit: cover;
    border-radius: var(--bs-border-radius) !important;
}
.kpi_1_row {
    /* margin: 0; */
    /* gap: 10px; */
}
.kpi_1 {
    padding: 10px 20px;
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-secondary-bg);
    box-shadow: var(--bs-card-box-shadow);
}
.kpi_title {
    font-size: 14px;
    font-weight: 500;
    color: var(--bs-primary);
}
.kpi_value {
    font-size: 24px;
    font-weight: 600;
    color: var(--bs-dark);
}
/*Alert*/
  .bottom-left-alert {
      animation: slideIn 0.5s ease-out;
    position: fixed;
        bottom: 20px;
        left: 110px;
        z-index: 1055;
        max-width: 50vw;
  }

  @keyframes slideIn {
      from {
          transform: translateY(100%);
          opacity: 0;
      }

      to {
          transform: translateY(0);
          opacity: 1;
      }
  }
  .main {
    background-color: #fff;
    padding: 24px;
    border-radius: var(--bs-border-radius);
  }
  .box_container {
    padding: 20px;
  }
  .box_container:hover {   
    box-shadow: 0px 0px 35px 0px rgba(154, 161, 171, 0.15);
    transition: all 0.3s ease-in-out;
    background-color: var(--bs-border-color);
    cursor: pointer;
  }
  .box_container h6 {
    color: var(--bs-dark);
    font-weight: bold;
  }
.box_container p {
    color: var(--bs-gray);
}
.box_container span {
    color: var(--bs-dark);
}
.form-control {
    font-size: var(--input-font-size);
}
.legal h2{
    font-size: 18px;
    font-weight: 600;
    color: var(--bs-dark);
}
.legal h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--bs-dark);
}

.sitelink {
    position:absolute; 
    background: #00000020;
    padding: 10px 30px;
    border-radius: 20px;
    margin: 10px 30px;
    bottom: 20px;
    color: white;
}
.sitelink a {
    color: white;
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
    .container-menu {
        display: block;
        position: relative;
    }
    
    .container-content {
        margin: 20px; /* Reduced margin */
        width: auto;
    }
    
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 1050;
        margin: 0;
        width: 280px;
        border-radius: 0 30px 30px 0;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        width: 280px !important;
    }
    
    .sidebar.show-mobile {
        left: 0;
    }
    
    /* Force elements to be visible in mobile view regardless of active state */
    .sidebar.active .user-details,
    .sidebar .user-details {
        display: block !important;
    }
    
    .sidebar.active .menu ul li .arrow,
    .sidebar .menu ul li .arrow {
        display: block !important;
    }
    
    .sidebar.active .menu .title,
    .sidebar .menu .title {
        text-align: left !important;
    }

    .sidebar.active .menu>ul>li>a .text,
    .sidebar .menu>ul>li>a .text {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background-color: transparent !important;
        color: #757575 !important;
        /*padding: 12px 8px !important;*/
        border-radius: 8px !important;
    }

    .sidebar.active .menu>ul>li>a:hover .text {
        color: #000 !important;
    }
    
    .sidebar.active .menu>ul>li.active>a .text {
        color: #000 !important;
    }

    /* Hide the tooltip arrow on mobile */
    .sidebar.active .menu>ul>li>a .text::after {
        display: none !important;
    }

    .sidebar .menu-btn {
        display: none;
    }

    /* Overlay for mobile sidebar */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: none;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }

    /* Mobile Menu Trigger Button */
    .mobile-menu-trigger {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: var(--bs-primary);
        color: white;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        z-index: 1030;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        cursor: pointer;
    }
}

@media (min-width: 992px) {
    .mobile-menu-trigger {
        display: none;
    }
}