/********** Template CSS **********/
:root {
  --primary: #3dd358;
  --secondary: #191c24;
  --light: #6c7293;
  --dark: #000000;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  transition: 0.5s;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}
.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 50px;
}

/*** Layout ***/
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 250px;
  height: 100vh;
  overflow-y: auto;
  background: var(--secondary);
  transition: 0.5s;
  /*z-index: 999;*/
}

.content {
  margin-left: 250px;
  min-height: 100vh;
  background: var(--dark);
  transition: 0.5s;
}

@media (min-width: 992px) {
  .sidebar {
    margin-left: 0;
  }

  .sidebar.open {
    margin-left: -250px;
  }

  .content {
    width: calc(100% - 250px);
  }

  .content.open {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 991.98px) {
  .sidebar {
    margin-left: -250px;
  }

  .sidebar.open {
    margin-left: 0;
  }

  .content {
    width: 100%;
    margin-left: 0;
  }
}

/*** Navbar ***/
.sidebar .navbar .navbar-nav .nav-link {
  padding: 7px 20px;
  color: var(--light);
  font-weight: 500;
  border-left: 3px solid var(--secondary);
  border-radius: 0 30px 30px 0;
  outline: none;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
  color: var(--primary);
  background: var(--dark);
  border-color: var(--primary);
}

.sidebar .navbar .navbar-nav .nav-link i {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  border-radius: 40px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
  background: var(--secondary);
}

.sidebar .navbar .dropdown-toggle::after {
  position: absolute;
  top: 15px;
  right: 15px;
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  transition: 0.5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
  padding-left: 25px;
  border-radius: 0 30px 30px 0;
  color: var(--light);
}

.sidebar .navbar .dropdown-item:hover,
.sidebar .navbar .dropdown-item.active {
  background: var(--dark);
}

.content .navbar .navbar-nav .nav-link {
  /* margin-left: 25px; */
  padding: 12px 0;
  /* color: var(--light);
  outline: none; */
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  border-radius: 40px;
}

.content .navbar .dropdown-item {
  color: var(--light);
}

.content .navbar .dropdown-item:hover,
.content .navbar .dropdown-item.active {
  background: var(--dark);
}

.content .navbar .dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: middle;
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  transition: 0.5s;
}

.content .navbar .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

@media (max-width: 575.98px) {
  .content .navbar .navbar-nav .nav-link {
    margin-left: 15px;
  }
}

/*** Date Picker ***/
.bootstrap-datetimepicker-widget.bottom {
  top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
  border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
  font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
  padding: 10px;
  border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
  background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
  border-bottom-color: var(--primary);
}

/*** Testimonial ***/
.progress .progress-bar {
  width: 0px;
  transition: 2s;
}

/*** Testimonial ***/
.testimonial-carousel .owl-dots {
  margin-top: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 15px;
  height: 15px;
  border: 5px solid var(--primary);
  border-radius: 15px;
  transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
  background: var(--dark);
  border-color: var(--primary);
}

/*CUSTOM STYLES BY GARRY*/
/* Set the remaining height using calc() */
.row {

  align-items: center;
  /*justify-content: center;*/
}

#splash-screen .row {
  min-height: calc(
    100vh - 100px
  ); /* Subtract header height from viewport height */
  align-items: center;
  /*justify-content: center;*/
}
.card-header {
  display: flex; /* Use flexbox to align items */
  justify-content: space-between; /* Distribute items evenly with space between them */
  background-color: #000000;
  font-size: 16px;
  padding: 10px; /* Optional: Add padding for spacing */
}
.camera_card {
  height: calc((100vh - 8px) / 2);
}
.camera_left_padding {
  padding-left: 2px;
}
.camera_right_padding {
  padding-right: 2px;
}
.camera_card .card {
  background: #3a3a419e;
}

.navbar {
  height: 44px !important;
}

body {
  font-size: 0.7rem;
  font-weight: 600;
}
.card {
  background: #3a3a419e;
}
.navbar_card {
  height: calc((100vh) / 4.45);
  border: #47494d 1px solid;
}
.navbar-card-body {
  overflow: auto;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  padding: 0;
}

/* Update your CSS to remove the gap between header and content */
.modal-header {
  display: flex;
  justify-content: space-between;
  text-align: center;
  align-items: center;
  background-color: #3a3a419e; /* Header background color */
  color: white; /* Header text color */
  border-bottom: 1px solid #ccc;
}

/* Adjust the margin to 0 to remove the gap */
.modal-content {
  margin: 0;
  padding: 5px; /* Add some padding if needed */
}

/* DatePickerCustomStyles.css */

.custom-datepicker-input {
  /* You can adjust the height and padding as needed */
  height: 100%;
  padding: 10px;
  font-size: 12px;
  background: #3a3a419e;
  color: white;
  border: 1px solid;
}

/* VideoModal.css */

.error-text {
  color: #2f0a0ade;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
}

/* CUSTOM LOGO DESIGN  */
.logo-img {
  width: 100%;
  height: 44px;
}

/* SWAL */
/* .swal2-cancel {
  background-color: gray !important;
}
.swal2-confirm {
  background-color: #3dd358 !important;
  border: none !important;
} */

/* NAV */
.dropdown-divider {
  margin: 0.5em !important;
}
.navbar b{
  font-size: 16px;
}

/* alert header */
.i-alert {
  color: red;
  font-size: x-large;
}

.i-ai-active {
  /* background-color: rgb(248, 73, 73)!important; */
  color: #3dd358;
  font-size: x-large;
}

.i-ai-deactive{
  color: gray;
  font-size: x-large;
}
.i-ai-sleep {
  color: #ffc107;
  font-size: x-large;
}
.zone-region-info{
  margin-left:2em;
  color:#ffc107 ;
  font-weight: bolder;
}

.ReactModal__Overlay {
  z-index: 9999;
  }
  .z-index-1{
    z-index: 1 
  }

  .i-telegram-active{
    font-size: x-large;
    color: #21CE95!important;
    /* background-color: #0088cc!important; */
  }

  .i-telegram-deactive{
    /* color: white; */
     font-size: x-large;
    color: #51575B!important;
  }


  .i-audio-active{
    font-size: x-large;
    color: #21CE95!important;
    /* background-color: #0088cc!important; */
  }

  .i-audio-deactive{
    /* color: white; */
     font-size: x-large;
    color: #51575B!important;
  }

  .upgrading-done{
    font-size: x-large;
    color: #3dd358;
  }
  @keyframes moveUp {
    0% {
        transform: translateY(0%); /* Start below the view */
    }
    100% {
        transform: translateY(-20%); /* Move up and out of view */
    }
}

  .upgrading{
    font-size: x-large;
    /* color: gray; */
    color: #28a745;
    animation: moveUp 1s ease-in-out infinite; 
    
  }


  .new-update {
    color: #4ddb6e!important; /* Text color */
    
    padding: 10px 15px; /* Some padding for a better appearance */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
    
}

.text-upper{
  text-transform: uppercase;
}

.full-screen {
  transition: all 0.3s ease-in-out; /* Smooth transition for resizing */
  overflow: hidden; /* Prevent scrollbars in full screen */
}

/* AGGRID */

.no-resize .ag-header-cell-resize {
  display: none;
}


/* table font */
.large-font-size{
  font-size: large;;
}


.bell-icon {
  /* font-size: small!important; */
  color: #f4004c!important;
  display: inline-block!important;
  animation: bell-ring 1.2s infinite!important;
}

@keyframes bell-ring {
  0% { transform: rotate(0); }
  25% { transform: rotate(15deg); }
  50% { transform: rotate(0); }
  75% { transform: rotate(-15deg); }
  100% { transform: rotate(0); }
}


/* Animation for the border color */
/* Animation for blinking the border color */
@keyframes blinkFillColor {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(189, 5, 5, 0.5); /* 50% opacity red */
  }
  100% {
    background-color: transparent;
  }
}

.danger {
  animation: blinkFillColor 1s ease-in-out infinite;
  /* padding: 20px; */
}

/* ensure swal notification comes on top */
.swal2-container {
  z-index: 999999 !important;
}