@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    padding: 0;
    margin: 0;
}
img{
    max-width: 100%;
}
:root {
    --green: #4ea819;
    --white: #fff; 
    --dark: #262c30;
  }
h1{ font-size: 48px; }
h2{ font-size: 42px; }
h3{ font-size: 36px; }
h4{ font-size: 30px; }
h5{ font-size: 24px; }
h6{ font-size: 18px; }
h1, h2, h3, h4, h5, h6 { line-height: 130%;}
a{
    text-decoration: none;

}
body{
    font-size: 14px;
    line-height: 24px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    color: var(--dark);
    transition: all 0.5s ease;
}
a{
    color: initial;
    text-decoration: none;
}
.sidebar {
    background: var(--dark);
    color: var(--white);
    width: 300%;
    max-width: 250px;
    height: 100vh;
    padding: 10px;
    position: fixed;
    left: 0;
    top: 0;
}
.inner-sitebar {
    display: flex;
    justify-content: left;
    flex-direction: column;
}
.sidebar-head {
    padding: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.inner-sitebar ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding-left: 0 !important;
}
.inner-sitebar ul li {
    border-radius: 6px;
}
.inner-sitebar ul li a {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 6px;
    color: var(--white);
    opacity: 0.3;
    border-radius: 4px;
    text-decoration: none;
}
.inner-sitebar ul li:hover {
    background: #333c43;
}
.inner-sitebar ul li:hover a, 
.inner-sitebar ul li.active a{
    opacity: 1;
}
.inner-sitebar ul li.active {
    background: var(--green);
}
.arrow-down {
    margin-left: auto;
}
.submen-icon {
    width: 12px;
    height: 12px;
    border-radius: 12px;
    border: 3px solid var(--white);
}
.inner-sitebar ul li ul.submenu {
    display: none;
}
.main-content {
    padding-left: 270px;
    max-width: 100%;
}
header {
    position: relative !important;
    background-color: var(--white);
    padding: 8px 24px;
    width: auto;
    max-width: 100%;
    box-shadow: 0px 3px 20px #0000001f;
}
.inner-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    align-items: center;
}
.header-menu-btn {
    display: flex;
    justify-content: left;
    gap: 20px;
    align-items: center;
}
.header-user {
    display: flex;
    justify-content: right;
    align-items: center;
    text-align: right;
    gap: 13px;
}
.menu-button {
    width: 24px;
}
.user-image {
    width: 48px;
    height: 48px;
    background: #4ea81933;
    border-radius: 50%;
}
.user-detail h4 {
    font-size: 14px;
    font-weight: 600;
}
/* input, select, textarea {
    padding: 8px;
    min-height: 36px;
    font-size: 16px;
    line-height: 16px;
    color: #000;
    border: 1px solid #dfdfdf;
    border-radius: 5px;
} */
.sidebar.collapsed {
    max-width: 48px;
}
.main-content.sidebar-collapsed {
    padding-left: 68px;
}
.sidebar.collapsed img.favimg {
    display: block;
}
.sidebar.collapsed img.logoimg {
    display: none;
}
img.favimg {
    display: none;
}
.sidebar.collapsed ul.sidebar-menu li p {
    display: none;
}
.sidebar.collapsed ul.sidebar-menu li a{
    justify-content: center;
    text-decoration: none !important;
}
.sidebar.collapsed .sidebar-head {
    padding: 32px 0px;
}
/* .sl-admin-page-footer {
    position: fixed;
    bottom: 0;
    left: 270px;
    width: calc(100% - 270px);
    background-color: #fff;
    box-shadow: 0px 3px 20px #0000001f;
    z-index: 999;
} */
ul.sidebar-menu li a p {
    margin-bottom: 0 !important;
}
.sl-admin-page-content {
    position: relative !important;
    background-color: var(--white);
    padding: 8px 24px;
    width: auto;
    max-width: 100%;
    box-shadow: 0px 3px 20px #0000001f;
}
.sl-admin-page-footer {
    background-color: #fff;
    padding: 12px 24px;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 999;
}
/* Optional: footer content styling */
.footer-system-content {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}
.footer-system-content a {
    color: #262c30;
    font-weight: 600;
    text-decoration: none;
}
.footer-system-typography {
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
}
.sl-admin-page-content .card .icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}
.dashboard-card {
    transition: all 0.3s ease-in-out;
}
.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.header-menu-btn .menu-button {
    cursor: pointer;
}
/* Container tweaks */
#adminUserMenu {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Dropdown toggle styles */
#adminUserMenu > a#adminDropdown {
    padding: 5px 10px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    user-select: none;
}

#adminUserMenu > a#adminDropdown:hover,
#adminUserMenu > a#adminDropdown:focus {
    background-color: #d7f0a7; /* lighter green on hover */
    text-decoration: none;
    outline: none;
}

/* Name style inside toggle */
#adminUserMenu > a#adminDropdown h4 {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 0 !important;
    line-height: 1;
    color: #000;
}

/* Avatar style */
#adminUserMenu > a#adminDropdown img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    object-fit: cover;
    transition: box-shadow 0.3s ease;
}

/* Avatar hover effect */
#adminUserMenu > a#adminDropdown:hover img,
#adminUserMenu > a#adminDropdown:focus img {
    box-shadow: 0 4px 12px rgba(78, 168, 25, 0.6);
}

/* Dropdown menu styles */
#adminUserMenu .dropdown-menu {
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    padding: 0;
    overflow: hidden;
}

/* Dropdown items */
#adminUserMenu .dropdown-menu .dropdown-item {
    padding: 12px 20px;
    font-weight: 500;
    color: #333;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Hover/focus on dropdown items */
#adminUserMenu .dropdown-menu .dropdown-item:hover,
#adminUserMenu .dropdown-menu .dropdown-item:focus {
    background-color: #4ea819;
    color: #fff;
    text-decoration: none;
}

/* Separator line between items */
#adminUserMenu .dropdown-menu .dropdown-item:not(:last-child) {
    border-bottom: 1px solid #e3e3e3;
}
div#av-admin-page-headings {
    position: relative !important;
    background-color: var(--white);
    padding: 10px 24px !important;
    width: auto;
    max-width: 100%;
    box-shadow: 0px 3px 20px #0000001f;
}
.sidebar-menu {
  background-color: transparent; /* or inherit */
  color: #fff;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scroll-behavior: smooth;
}
.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.flagicon img {
    width: 30px;
    height: auto;
    padding: 2px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    vertical-align: middle;
    object-fit: contain;
}
.table-list-profile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    background-color: #f8f9fa;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease-in-out;
}
.btn-success {
    background-color: #4ea819 !important;
    color: #fff;
    border-color: #4ea819;
}
.text-success {
    color: #4ea819 !important;
}
.page-head-title {
    display: grid;
    grid-template-columns: 17% 83%;
    width: 100%;
    align-items: center;
}
/* ACTIVE PARENT MENU ALSO */
li.menu-item a.parent.active {
    background: #4ea819 !important;
    opacity: 1;
}
/* Main search box styling */
.header-search {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    position: relative;
}

.search-box input[type="search"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.search-box input[type="search"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

#av-menu-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 6px 6px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

/* Dropdown list */
.av-search-menu-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.av-search-menu-results-list li {
    border-bottom: 1px solid #f0f0f0;
}

.av-search-menu-results-list li:last-child {
    border-bottom: none;
}

.av-search-menu-results-list li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
}

.av-search-menu-results-list li a i {
    margin-right: 10px;
    color: #4CAF50;
    font-size: 15px;
}

.av-search-menu-results-list li a:hover {
    background-color: #f9f9f9;
    color: #222;
}

/* For responsiveness */
@media (max-width: 768px) {
    .header-search {
        max-width: 100%;
    }
}
#av-search-load-button {
    position: relative;
    width: 36px;
    height: 36px;
    background-color: #4ea819; /* green background */
    border: none;
    border-radius: 50%;
    cursor: not-allowed;
    display: inline-block;
}

#av-search-load-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.form-control:focus, .form-select:focus {
    border-color: #4ea819 !important;
    box-shadow: 0 0 0 .25rem rgb(131 255 55 / 25%) !important;
}
.cke_notification_warning {
    display: none;
}
.form-check-input{
    cursor: pointer !important;
}
.form-check-input:checked {
    background-color: #4ea819 !important;
    border-color: #4ea819 !important;
}
.form-check-input:focus {
    border-color: #4ea819 !important;
    box-shadow: 0 0 0 .25rem rgb(131 255 55 / 25%) !important;
}
.form-switch .form-check-input:focus:not(:checked) {
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%234ea819'/%3e%3c/svg%3e") !important;
}
.table-filters-section .select2.select2-container {
    width: 280px !important;
}
/* DATATABLE BUTTONS */
.av-btn-dt {
    background-color: #4ea819 !important;
    color: #fff !important;
    border: 1px solid #4ea819 !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    margin-right: 3px !important;
    font-weight: 400 !important;
    font-size: 18px !important;
}
.av-btn-dt:hover {
    background-color: #3c9217 !important;
    border-color: #3c9217 !important;
    color: #fff !important;
}
.dt-container .dt-paging{
    display: flex;
    justify-content: flex-end;
}
.u-activity {
    position: absolute;
    display: block;
    height: 12px;  
    width: 12px;   
    border-radius: 50%;
    top: 5px;      
    right: 5px;     
    border: 2px solid #fff;
}
/* Online status color */
.u-activity.online {
    background-color: #4ea819;  /* Green for online */
}
/* Offline status color */
.u-activity.offline {
    background-color: #ff7d00;  /* Red for offline */
}
/* PROFILE UPLOAD SECTION DESIGN */
.upload-profile-image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.upload-profile-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #4ea819;
}

.upload-profile-image-wrapper .edit-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background-color: #4ea819;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
}

.upload-profile-image-wrapper .edit-icon:hover {
    background-color: #3a8917;
}
.table-list-profile-icon {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dee2e6;
    cursor: pointer;
}
.table-list-profile-icon:hover{
     transform: scale(1.15);
    z-index: 10;
}
.more-circle {
    width: 30px;
    height: 30px;
    background-color: #4ea819;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dee2e6;
    cursor:pointer;
}
.more-circle:hover {
    transform: scale(1.15);
    z-index: 10;
}




@media(max-width:767px){
.fc-header-toolbar.fc-toolbar.fc-toolbar-ltr {
display: inline-block !Important;
}
.page-head-title {
    display: inline-block !important;
}
button.fc-today-button.fc-button.fc-button-primary {
    font-size: 15px;
   font-weight: 300;
   text-transform: capitalize;
}
.fc-button-group {
    font-size: 15px;
   text-transform: capitalize !important;
}
h2#fc-dom-1 {
   font-size: 15px;
    margin: 15px 0;
}
.fc-button-group button {
    font-size: 15px;
    text-transform: capitalize !important;
    font-weight: 100 !important;
}
.card-body {
    margin: 0 !important;
    padding: 0 !important;
}
.main-content.sidebar-collapsed {
    padding-left: 50px;
}
a.fc-col-header-cell-cushion {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
.sl-admin-page-content {
    padding: 8px 15px;
}
}


/* Mobile par width force 100% + koi horizontal scroll nahi */
@media (max-width: 767px) {
  #av-tableslist-table_wrapper,
  .dt-container,
  .dataTables_wrapper {
    width: 100% !important;
    overflow-x: hidden !important;
  }
  div#av-admin-page-headings {
    width: 100% !important;
    text-align: center !important;
    display: inline-block !important;
}
  .main-content {
    padding-left: 270px;
    max-width: 100%;
    min-width: 300px !important;
    display: grid;
}

  /* Kisi bhi nowrap ko tod do */
  #av-tableslist-table,
  #av-tableslist-table th,
  #av-tableslist-table td {
    white-space: normal !important;
    word-break: break-word;
  }
  span.dt-column-order {
    display: none;
}
table#av-tableslist-table th, table#av-tableslist-table td, table#sl-items-categories-table th, table#sl-items-categories-table td, table#sl-activity-log-table th, table#sl-activity-log-table td {
    font-size: 10px;
}
  
  .table-action-buttons {
    gap: 0 !important;
}
a.btn.btn-sm.btn-success {
    font-size: 10px;
    padding: 3px;
}
button.btn.btn-sm.btn-danger {
    font-size: 8px;
    padding: 3px;
}
.dt-paging {
    justify-content: center !important;
}

.inner-sitebar ul li.active {
    background: var(--green);
    padding: 8px 0px;
}

.sidebar {
    padding: 5px !important;
}
.sidebar-menu {
    padding: 0 !important;
}

.inner-sitebar ul li a {
    opacity: 0.9;
}

}

/* Agar table par kahin 'nowrap' class lagi ho to hata do */
#av-tableslist-table.nowrap,
#av-tableslist-table.table.nowrap {
  white-space: normal !important;
}
