  #camwp_admin_customization fieldset{
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #9C9C9C;
    margin-top: 20px;
  }
  #camwp_admin_customization fieldset h2{
    margin: 0px;
  }
 .no-magin-top{margin-top: 0px;}
  #camwp_admin_customization legend{
    padding: 7px;
  }
  /*LOADER STYLE */
  .camwp_loader {
    border: 16px solid #ab8080;
    border-radius: 50%;
    border-top: 16px solid blue;
    border-right: 16px solid green;
    border-bottom: 16px solid red;
    width: 120px;
    height: 120px;
    -webkit-animation: access-spin 2s linear infinite;
    animation: access-spin 2s linear infinite;
    position: absolute;
    top: 45vh;
    left: 50%;
    z-index: 999999;
}
@-webkit-keyframes access-spin {
  0% {
      -webkit-transform: rotate(0deg);
  }

  100% {
      -webkit-transform: rotate(360deg);
  }
}

@keyframes access-spin {
  0% {
      transform: rotate(0deg);
  }

  100% {
      transform: rotate(360deg);
  }
}
.adminbar_middle_section > div{visibility: hidden;}

.camwp_loader_container{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
}
/* General Settings style start */
.setting_button_container{display: flex; gap: 10px;}

#welcome-panel{background: transparent;}
.camwp_top_content{
  padding: 12px;
    background: #fff;
    border-radius: 10px;
}

.tab-content{display: none;}
.tab-content.active{display: block;}

/* Style for Admin Bar logo */
#custom_logo_preview, .upload_button_container{display: inline;}

/* Style to make toggle for checkbox  */
/* Toggle switch container */
.cam-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

/* Hide default checkbox */
.cam-toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.cam-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

/* Slider before checked */
.cam-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Checked styles */
.cam-toggle-switch input:checked + .cam-slider {
    background-color: #2196F3; /* Color when checked */
}

.cam-toggle-switch input:checked + .cam-slider:before {
    transform: translateX(26px);
}

/* design for range slider */
.range_slider {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    max-width: 200px;
  }
  
  .range_slider:hover {
    opacity: 1;
  }
  
  .range_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #04AA6D;
    cursor: pointer;
  }
  
  .range_slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #04AA6D;
    cursor: pointer;
  }

  /* checkbox style */

  .check_container {
    display: inline-block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    margin-right: 15px;
    cursor: pointer;
    font-size: 18px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Hide the browser's default checkbox */
  .check_container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  /* Create a custom checkbox */
  .checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color:#a7aaad;
  }
  
  /* On mouse-over, add a grey background color */
  .check_container:hover input ~ .checkmark {
    background-color: #ccc;
  }
  
  /* When the checkbox is checked, add a blue background */
  .check_container input:checked ~ .checkmark {
    background-color: #2196F3;
  }
  
  /* Create the checkmark/indicator (hidden when not checked) */
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  /* Show the checkmark when checked */
  .check_container input:checked ~ .checkmark:after {
    display: block;
  }
  
  /* Style the checkmark/indicator */
  .check_container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  /* custom dashboad style start */
  .camwp_container {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    width: 100%;
    max-width: calc(100% - 40px);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}
.camwp_summary, .chart-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    padding-bottom: 50px;
}
/* style for coming soon start */
.chart-container{position: relative;}
.chart-container .coming_soon{
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0px;
  left: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.chart-container .coming_soon h1{
  font-size: 30px;
  font-weight: bold;
  color: red;
}
#chart_div{
  width: 100%; 
  height: 300px;
}
#chart_div img{
  width: 100%;
  opacity: 0.2;
}
/* style for coming soon end */
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.summary-header h2 {
    font-size: 1.2em;
    color: #333;
    margin: 0;
}
.summary-header small {
    color: #777;
}
.export-btn {
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 0.9em;
    color: #555;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.export-btn:hover {
    background-color: #e5e5e5;
}

/* Summary Card Grid Styling */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.card {
    padding: 20px;
    border-radius: 10px;
    color: #333;
    text-align: center;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}
.card-icon {
    font-size: 1.5em;
    margin-bottom: 10px;
}
.card-title {
    font-size: 1.2em;
    font-weight: bold;
}
.card-subtitle {
    color: #777;
    font-size: 0.85em;
    margin-top: 5px;
}
.card-1 { background-color: #ffe8e8; }
.card-2 { background-color: #ffefdb; }
.card-3 { background-color: #e8f9e8; }
.card-4 { background-color: #f2e9ff; }
.dashicons-edit:before{font-size: 30px;}

/* Design for real time data start */

.analytics-box-heading h3 {
  font-size: 16px;
  color: #2b3a4a;
  font-weight: 600;
  margin-bottom: 10px;
  grid-column: span 2;
  text-align: left;
}

.analytics-box {
    margin-top: 20px;
    width: 100%;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    display: grid;
    grid-template-columns: 45% 50%;
    gap: 5%;
    box-sizing: border-box;
    align-items: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    color: #333;
    border: 1px solid #e1e4e8;
}

.user-count {
  font-size: 60px;
  color: #ff6b4a;
  font-weight: bold;
  color: #ff4a4a;
}

.device-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  color: #2b3a4a;
}

.device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  color: #0073aa;
  padding: 5px 0;
  border-bottom: 1px solid #e1e4e8;
}

.device .icon {
  font-size: 20px;
  color: #0073aa;
  margin-right: 10px;
  color: #4b9cff;

}

.device span {
  flex-grow: 1;
  text-align: left;
  color: #2b3a4a;

}

.device .count {
  color: #ff6b4a;
  font-weight: bold;
  margin-left: auto;
  color: #ff4a4a;

}
/* Design for real time data end  */

/* Container for the stat boxes */
.stats-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  
}

/* Individual stat box styling */
.stat-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  text-align: center;
  width: 120px;
}

/* Title styling */
.stat-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

/* Value styling */
.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

/* admin menu customization */
.custom-menu {
  max-width: 100%;
  margin: 20px auto;
  font-family: Arial, sans-serif;
}

.menu-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 18px;
  padding: 0px 0px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.menu-item:hover {
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.main-menu-title {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  color: #333;
  background: #fff;
  padding:15px 15px 15px 15px;
  margin-top: 0px;
  margin-bottom: 0px;
  border-radius: 5px;
}

/* Adjust icon and title spacing */
.menu-icon {
  font-size: 18px;
  margin-right: 12px;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.menu-title-text {
  flex-grow: 1;
}

.menu-expand {
  font-size: 14px;
  color: #888;
  transition: transform 0.3s;
  cursor: pointer;
}

/* Rotate arrow when expanded */
.menu-item.expanded .menu-expand {
  transform: rotate(180deg);
}

.custom-menu .separator {
  height: 1px;
  background-color: #ddd;
  margin: 10px 0;
}

.submenu-items {
  display: none;
  margin-top: 10px;
  padding-left: 32px;
}

.submenu-item {
  color: #666;
  font-size: 14px;
  padding: 5px 0;
}

.submenu-item:hover {
  color: #333;
}
.hover-eye{
  margin-right: 30px;
  cursor: pointer;
  display: none;
}
.main-menu-title:hover .hover-eye, .submenu_item:hover .hover-eye, .hover-eye.always_view {
  display: inline-block;
}
.submenu-items {
  display: none; /* Start hidden */
  margin-top: 10px;
  padding-left: 32px;
}
.menu-item.expanded .submenu-items {
  display: block; /* Show when expanded */
}
.submenu_item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0px;
  margin-bottom: 0px;
  padding-top: 10px;
  padding-bottom: 10px;
}
#camwp_adminMenu .disabled {
  opacity: 0.5;
}

/* Login custom template */
.camwp_template{
  display: flex;
  column-gap: 25px;
}
.template-item{
  position: relative;
  overflow: hidden;
}
.template_image{max-width: 300px; height: 100%;}
div.template_action{display: none;}

.template-item div.template_action {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;    /* Center vertically */
  position: absolute;
  width: calc( 100% - 60px );
  height: calc( 100% - 60px );
  left: 30px;
  top: 30px;
  background: rgba(25, 24, 24, 0.32);
  box-sizing: border-box;
  box-shadow: 0px 1px 13px 2px rgba(251, 251, 251, 0.09);
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition */
  transform: scale(0.9); /* Start slightly smaller */
}

.template-item:hover div.template_action, .template-item div.template_action.active {
  opacity: 1; /* Fully visible */
  transform: scale(1); /* Scale back to normal size */
}

.template_action a{
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

.template_action .dashicons-yes{
    font-size: 70px;
    color: #fff;
    height: 70px;
    width: 70px;
}
.template_action i{display: none;}
.template_action.active i{display: block;}
.template_action.active a{display: none;}

div.template_action a{color: #fff;}
.camwp_summary .card-grid a{text-decoration: none;}
.toplevel_page_cam #screen-meta-links{display: block;}
.hide{display: none;}
/* Responsive Styling */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}