/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --tosca: #118ab2;
  --tosca-hover : linear-gradient(to bottom, #00D4FF, #006699); 
  --tosca-gradient : linear-gradient(to bottom, #00B4DB, #0083B0);
  --red : #D32F2F;
  --red-hover : linear-gradient(to bottom, #FF7F7F, #B71C1C); 
  --red-gradient : linear-gradient(to bottom, #FF5F5F, #D32F2F); 
  --body-background-color : #f6f9ff;
  --text-color: #212529;
  --border-color: #dee2e6;
  --border-width: 5px;
  --border-radius: 10px;
  scroll-behavior: smooth;
}
/* :root {
  scroll-behavior: smooth;
}
*/

body {
  font-family: "Open Sans";
  background: var(--body-background-color);
  color: #444444;
  position: relative;
  margin: 0;
  /* padding: 1rem 0 0 5rem; */
  -webkit-transition: .5s;
  transition: .5s;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aab7cf transparent;
  box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
  background-color: #fff;
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #aab7cf;
}

@media (min-width: 1200px) {

  #main,
  #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {

  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: #899bbd;
  font-weight: 600;
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: 0.3;
  background: var(--tosca-hover);
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: var(--tosca-hover);
}

.sidebar-nav .nav-link.collapsed {
  color: #012970;
  background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
  color: #899bbd;
}

.sidebar-nav .nav-link:hover {
  color: #fff;
  background: var(--tosca-hover);
  border: none;
  border-radius: 15px;
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
  padding: 10px 20px; 
}

.sidebar-nav .nav-link:hover i {
  color: #fff;
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #012970;
  transition: 0.3;
  padding: 10px 0 10px 40px;
  transition: 0.3s;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: #fff;
  background: var(--tosca-hover);
  border: none;
  border-radius: 15px;
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
  padding: 10px 20px; 
}

.sidebar-nav .nav-content a.active i {
  background-color: var(--tosca-hover);
  color: #fff;
}

.nav-item.active {
  background-color: var(--tosca-hover); 
}

.nav-item.active .nav-link {
  background: var(--tosca-hover);
  border: none;
  border-radius: 15px;
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
  padding: 10px 20px; 
  color: #fff; 
}

.nav-item.active .nav-link i {
  color: #fff; 
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
  line-height: 1;
}

@media (min-width: 1200px) {
  .logo {
    width: 280px;
  }
}

.logo img {
  max-height: 26px;
  margin-right: 6px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: #012970;
  font-family: "Nunito", sans-serif;
}

.header {
  transition: all 0.5s;
  z-index: 997;
  height: 60px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  background-color: #fff;
  padding-left: 20px;
  /* Toggle Sidebar Button */
  /* Search Bar */
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: #012970;
}

.header .search-bar {
  min-width: 360px;
  padding: 0 20px;
}

@media (max-width: 1199px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: white;
    z-index: 9999;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }
}

.header .search-form {
  width: 100%;
}

.header .search-form input {
  border: 0;
  font-size: 14px;
  color: #012970;
  border: 1px solid rgba(1, 41, 112, 0.2);
  padding: 7px 38px 7px 8px;
  border-radius: 3px;
  transition: 0.3s;
  width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
  border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.header .search-form button i {
  color: #012970;
}


/*--------------------------------------------------------------
# Switch Language Toggler
--------------------------------------------------------------*/

/* .lang-toggler {
  background: #d6dce8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 1.6rem;
  width: 4.2rem;
  cursor: pointer;
  border-radius: 0.25rem;
}
.lang-toggler span {
  font-size: 1.2rem;
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lang-toggler .active {
  background: white;
  border-radius: 0.25rem;
  color: var(--tosca);
} */

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: #012970;
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #012970;
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

.header-nav .notifications {
  inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .notifications .notification-item:hover {
  background-color: #f6f9ff;
}

.header-nav .messages {
  inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .messages .message-item a {
  display: flex;
}

.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  max-height: 40px;
}

.header-nav .messages .message-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444444;
}

.header-nav .messages .message-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .messages .message-item:hover {
  background-color: #f6f9ff;
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: #444444;
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: #f6f9ff;
}

body {

  font-family: "Open Sans", sans-serif;
  background: #f6f9ff;
  color: #444444;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1;
}

.button-container {
  display: flex;
  gap: 10px; 
  align-items: center; 
}

.tosca {
  color: var(--tosca);
}

.custom-btn {
    text-align: center;
}

.custom-btn.in{
    background-color: rgb(83, 189, 41)
}

.custom-btn.out{
    background-color: rgb(175, 61, 41)
}

.custom-btn i {
    font-size: 24px; 
}

.custom-btn label {
    font-size: 9px; 
    margin-top: 5px;
    display: block;
}

/* Custom CSS for Mobile-Friendly Grid */
.presensi-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.presensi-column {
    flex: 0 1 23%; 
    max-width: 100%;
    margin-bottom: 15px; 
}

@media (min-width: 576px) {
    .presensi-column {
        flex: 0 1 30%; 
        max-width: 30%;
    }
}

@media (min-width: 768px) {
    .presensi-column {
        flex: 0 1 23%; 
        max-width: 23%;
    }
}

.login-icon {
    width: 100px;
}

/* Button Tosca */
.btn-tosca { 
  background: linear-gradient(to bottom, #00B4DB, #0083B0); 
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px; 
  border: none;
  border-radius: 20px; 
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hover Effect */
.btn-tosca:hover {
  background: linear-gradient(to bottom, #00D4FF, #006699); 
  color: #fff; 
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3); 
  transform: scale(1.05);
}

/* Active Effect */
.btn-tosca:active {
  background: #1565C0; 
  color: #fff;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); 
  transform: translateY(2px) scale(0.98); 
}

/* Focus Effect */
.btn-tosca:focus {
  outline: 2px solid var(--tosca);
  offset: 2px;
  box-shadow: 0px 0px 10px rgba(33, 150, 243, 0.5);
}

/* Disabled Effect */
.btn-tosca:disabled {
  background: transparent;
  border: 2px solid #BDBDBD;
  color: #BDBDBD; 
  cursor: not-allowed;
  box-shadow: none; 
  opacity: 0.7; 
}

/* Icon Support */
.btn-tosca i {
  font-size: 16px; 
}

/* Overlay untuk spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5); /* Efek blur */
  backdrop-filter: blur(5px); /* Efek blur */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none; /* Default tersembunyi */
}

/* Spinner Animasi */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(21, 101, 192, 0.3); /* Warna lingkaran */
  border-top: 4px solid #1565C0; /* Warna bagian atas */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Loading State untuk btn-tosca */
/* .btn-tosca.loading::after {
  content: "";
  margin-left: 10px; 
  width: 18px;
  height: 18px;
  border: 2px solid #00897B; 
  border-radius: 50%;
  border-top: 2px solid transparent; 
  animation: spin 0.8s linear infinite; 
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} */

/* Saat loading, buat tombol tidak bisa diklik */
/* .btn-tosca.loading {
  pointer-events: none;
  opacity: 0.7;
} */


/*
.btn-tosca {
  background: linear-gradient(to bottom, #00B4DB, #0083B0); 
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px; 
  border: none;
  border-radius: 20px; 
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  }

.btn-tosca:hover {
  color: white;
  background: linear-gradient(to bottom, #00D4FF, #006699); 
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3); 
}

.btn-tosca:active {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(2px);
}

.btn-tosca i {
  font-size: 16px; 
}

.btn-tosca:active {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(2px);
}

/* Button red */
.btn-red {
  background: linear-gradient(to bottom, #FF5F5F, #D32F2F); 
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px; 
  border: none;
  border-radius: 20px; 
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-red:hover {
  background: linear-gradient(to bottom, #FF7F7F, #B71C1C); 
  color: #fff; 
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3); 
  transform: scale(1.05);
}

.btn-red i {
  font-size: 16px; 
}

.btn-red:active {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(2px);
}

/* Button Green */
.btn-green {
  background: linear-gradient(to bottom, #4CAF50, #2E7D32); 
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px; 
  border: none;
  border-radius: 20px; 
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-green:hover {
  background: linear-gradient(to bottom, #66BB6A, #1B5E20); 
  color: #fff; 
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3); 
  transform: scale(1.05);
}

.btn-green i {
  font-size: 16px; 
}

.btn-green:active {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(2px);
}

/* Button Yellow */
.btn-yellow {
  background: linear-gradient(to bottom, #FFEB3B, #FBC02D); 
  color: #5D4037;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px; 
  border: none;
  border-radius: 20px; 
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-yellow:hover {
  background: linear-gradient(to bottom, #FFF176, #F57F17); 
  color: #5D4037; 
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3); 
  transform: scale(1.05);
}

.btn-yellow i {
  font-size: 16px; 
}

.btn-yellow:active {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(2px);
}

/* Button Outline Blue */
.btn-outline-blue {
  background: linear-gradient(to bottom, #2196F3, #1565C0); 
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px; 
  border: none;
  border-radius: 20px; 
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-blue:hover {
  background: linear-gradient(to bottom, #64B5F6, #0D47A1); 
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3); 
}

.btn-outline-blue i {
  font-size: 16px; 
}

.btn-outline-blue:active {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(2px);
}

/* Button Blue */
.btn-blue { 
  background: linear-gradient(to bottom, #2196F3, #1565C0); 
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px; 
  border: none;
  border-radius: 20px; 
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hover Effect */
.btn-blue:hover {
  background: linear-gradient(to bottom, #64B5F6, #0D47A1); 
  color: #fff; 
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3); 
  transform: scale(1.05);
}

/* Active Effect */
.btn-blue:active {
  background: #1565C0; 
  color: #fff;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); 
  transform: translateY(2px) scale(0.98); 
}

/* Focus Effect */
.btn-blue:focus {
  outline: 2px solid #2196F3;
  offset: 2px;
  box-shadow: 0px 0px 10px rgba(33, 150, 243, 0.5);
}

/* Disabled Effect */
.btn-blue:disabled {
  background: transparent;
  border: 2px solid #BDBDBD;
  color: #BDBDBD; 
  cursor: not-allowed;
  box-shadow: none; 
  opacity: 0.7; 
}

/* Icon Support */
.btn-blue i {
  font-size: 16px; 
}


/* Loading State */
.btn-outline-blue.loading::after {
  content: "";
  margin-left: 10px; /* Jarak dengan teks */
  width: 18px;
  height: 18px;
  border: 2px solid #1565C0; /* Warna loading */
  border-radius: 50%;
  border-top: 2px solid transparent; /* Efek spin */
  animation: spin 0.8s linear infinite; /* Animasi */
  display: inline-block;
}

/* Button Tosca Outline */
.btn-untosca {
  color: var(--tosca);
  background: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 8px 18px; 
  border: solid 2px var(--tosca);
  border-radius: 20px; 
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-untosca:hover {
  background: linear-gradient(to bottom, #00D4FF, #006699); 
  color: white;
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
  padding: 10px 20px; 
  border: none;
}

.btn-untosca:active {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(2px);
}

.btn-untosca i {
  font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
  }
  
a:hover {
    color: inherit;
    text-decoration: none;
  }
   

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background: #118ab2;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
  }
  
  .back-to-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
  }
  
  .back-to-top:hover {
    background: #046f92;
    color: #fff;
  }
  
  .back-to-top.active {
    visibility: visible;
    opacity: 1;
  }

/* DATATABLE */
.datatable-wrapper.no-header .datatable-container {
	border-top: 1px solid #046f92;
}

.datatable-wrapper.no-footer .datatable-container {
	border-bottom: 1px solid #d9d9d9;
}

.datatable-top,
.datatable-bottom {
	padding: 8px 10px;
}

.datatable-top > nav:first-child,
.datatable-top > div:first-child,
.datatable-bottom > nav:first-child,
.datatable-bottom > div:first-child {
	float: left;
}

.datatable-top > nav:last-child,
.datatable-top > div:not(first-child),
.datatable-bottom > nav:last-child,
.datatable-bottom > div:last-child {
	float: right;
}

.datatable-selector {
	padding: 6px;
}

.datatable-input {
	padding: 6px 12px;
}

.datatable-info {
	margin: 7px 0;
}

/* PAGER */
.datatable-pagination ul {
	margin: 0;
	padding-left: 0;
}

.datatable-pagination li {
	list-style: none;
	float: left;
}

.datatable-pagination li.datatable-hidden {
    visibility: hidden;
}

.datatable-pagination a,
.datatable-pagination button {
	border: 1px solid transparent;
	float: left;
	margin-left: 2px;
	padding: 6px 12px;
	position: relative;
	text-decoration: none;
	color: #333;
    cursor: pointer;
}

.datatable-pagination a:hover,
.datatable-pagination button:hover {
	background: var(--tosca-hover);
  color: #fff;
  border-radius: 10px;
  transform: translateY(2px) scale(0.98); 
  offset: 2px;
}

.datatable-pagination .datatable-active a,
.datatable-pagination .datatable-active a:focus,
.datatable-pagination .datatable-active a:hover,
.datatable-pagination .datatable-active button,
.datatable-pagination .datatable-active button:focus,
.datatable-pagination .datatable-active button:hover {
	background: var(--tosca-hover);
  color: #fff;
  border-radius: 10px;
	cursor: default;
}

.datatable-pagination .datatable-ellipsis a,
.datatable-pagination .datatable-disabled a,
.datatable-pagination .datatable-disabled a:focus,
.datatable-pagination .datatable-disabled a:hover,
.datatable-pagination .datatable-ellipsis button,
.datatable-pagination .datatable-disabled button,
.datatable-pagination .datatable-disabled button:focus,
.datatable-pagination .datatable-disabled button:hover {
    pointer-events: none;
    cursor: default;
}

.datatable-pagination .datatable-disabled a,
.datatable-pagination .datatable-disabled a:focus,
.datatable-pagination .datatable-disabled a:hover,
.datatable-pagination .datatable-disabled button,
.datatable-pagination .datatable-disabled button:focus,
.datatable-pagination .datatable-disabled button:hover {
	cursor: not-allowed;
	opacity: 0.4;
}

.datatable-pagination .datatable-pagination a,
.datatable-pagination .datatable-pagination button {
	font-weight: bold;
}

/* TABLE */
.datatable-table {
	max-width: 100%;
	width: 100%;
	border-spacing: 0;
	border-collapse: separate;
}

.datatable-table > tbody > tr > td,
.datatable-table > tbody > tr > th,
.datatable-table > tfoot > tr > td,
.datatable-table > tfoot > tr > th,
.datatable-table > thead > tr > td,
.datatable-table > thead > tr > th {
	vertical-align: top;
	padding: 8px 10px;
  border-bottom: 0.2px solid #118ab2;
}

.datatable-table > thead > tr > th {
	vertical-align: bottom;
	text-align: left;
	border-bottom: 1px solid #d9d9d9;
}

.datatable-table > tfoot > tr > th {
	vertical-align: bottom;
	text-align: left;
	border-top: 1px solid #d9d9d9;
}

.datatable-table th {
	vertical-align: bottom;
	text-align: left;
    background-color: #118ab2;
    color: #fff;
}

.datatable-table th a {
	text-decoration: none;
	color: inherit;
}

.datatable-table th button,
.datatable-pagination-list button {
    color: inherit;
    border: 0;
    background-color: inherit;
    cursor: pointer;
    text-align: inherit;
    font-weight: inherit;
    font-size: inherit;
}

.datatable-sorter, .datatable-filter {
	display: inline-block;
	height: 100%;
	position: relative;
	width: 100%;
}

.datatable-sorter::before,
.datatable-sorter::after {
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	right: 4px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	opacity: 0.2;
}


.datatable-sorter::before {
	border-top: 4px solid #fff;
	bottom: 0px;
}

.datatable-sorter::after {
	border-bottom: 4px solid #fff;
	border-top: 4px solid transparent;
	top: 0px;
}

.datatable-ascending .datatable-sorter::after,
.datatable-descending .datatable-sorter::before,
.datatable-ascending .datatable-filter::after,
.datatable-descending .datatable-filter::before {
	opacity: 0.6;
}

.datatable-filter::before {
    content: "";
    position: absolute;
    right: 4px;
    opacity: 0.2;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
	border-radius: 50%;
    border-top: 10px solid #fff;
    top: 25%;
}

.datatable-filter-active .datatable-filter::before {
    opacity: 0.6;
}

.datatable-empty {
	text-align: center;
}

.datatable-top::after, .datatable-bottom::after {
	clear: both;
	content: " ";
	display: table;
}

table.datatable-table:focus tr.datatable-cursor > td:first-child {
	border-left: 3px blue solid;
}

table.datatable-table:focus {
	outline: solid 1px black;
    outline-offset: -1px;
}


/* Card */
.card {
    margin-bottom: 30px;
    border: none;
    border-radius: 15px;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.3 );
  }
  
  .card-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    padding: 10px;
  }

  .card-header {
    border-color: #ebeef4;
    background-color: #fff;
    color: #798eb3;
    padding: 15px;
    margin-top: 15px;
  }

  .card-footer {
    border-color: #ebeef4;
    background-color: #fff;
    color: #798eb3;
    padding: 15px;
  }
  
  .card-title {
    padding: 20px 0 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: #046f92;
    font-family: "Poppins", sans-serif;
  }
  
  .card-title span {
    color: #899bbd;
    font-size: 14px;
    font-weight: 400;
  }
  
  .card-body {
    padding: 0 20px 20px 20px;
  }
  
  .card-img-overlay {
    background-color: rgba(255, 255, 255, 0.6);
  }

  /* NAV */
  .nav {
    --bs-nav-link-padding-x: 1rem;
    --bs-nav-link-padding-y: 0.5rem;
    --bs-nav-link-font-weight: ;
    --bs-nav-link-color: ##212529;
    /* --bs-nav-link-hover-color: var(--tosca); */
    --bs-nav-link-disabled-color: var(--bs-secondary-color);
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
  color: #fff;
  background-color: var(--tosca);
  border-radius: 10px;
}

.nav-link:hover {
  background: linear-gradient(to bottom, #00D4FF, #006699); 
  color: #fff; 
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3); 
  /* transform: scale(1.05); */
  border-radius: 10px;
}

.form-check-input:checked {
    background-color: var(--tosca);
    border-color: var(--tosca);
}

#map {
  height: 200px;
  width: 100%;
}

#mapPresence {
  width: 100%; 
  height: 400px; /
}


/* public/css/custom-alerts.css */
.swal2-popup {
  font-size: 1rem; 
  border-radius: 10px; 
}

.swal2-title {
  color: #118ab2; 
}

.swal2-content {
  font-weight: 500;
}

.swal2-success {
  background-color: #d4edda; 
}

.swal2-error {
  background-color: #f8d7da; 
}

/* Change the button colors */
.swal2-cancel {
  background: linear-gradient(to bottom, #FF5F5F, #D32F2F); 
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px; 
  border: none;
  border-radius: 20px; 
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* background: linear-gradient(to right, #118ab2, #06b6d4); 
  color: #fff; 
  padding: 10px 20px; 
  border-radius: 5px; 
  border: none; 
  transition: background 0.3s ease;  */
}

/* Optional: Add hover effect */
.swal2-cancel:hover {
  background: linear-gradient(to bottom, #FF7F7F, #B71C1C); 
  color: var(--red); 
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3); 
  transform: scale(1.05);
  /* color: #118ab2;
  background: #fff; 
  padding: 10px 20px; 
  border-radius: 5px; 
  border: 2px solid #118ab2; 
  transition: background 0.3s ease;  */
}

.swal2-confirm {
  background: linear-gradient(to bottom, #00B4DB, #0083B0); 
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px; 
  border: none;
  border-radius: 20px; 
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* background-color: #fff; 
  color: #118ab2; 
  padding: 8px 20px;
  border-radius: 5px;
  border: 2px solid #118ab2; */
}

.swal2-confirm:hover {
  background: linear-gradient(to bottom, #00D4FF, #006699); 
  color: var(--tosca); 
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3); 
  transform: scale(1.05);
  /* background-color: #0f7f9e; 
  color: #fff; */
}

/* Change the color of the warning icon */
.swal2-icon-warning {
    color: #ffcc00; 
    border-color: #ffcc00; 
}
.swal2-icon-warning .swal2-icon {
    background-color: rgba(255, 204, 0, 0.2); 
    border-radius: 50%; 
}

.swal2-html-container {
  color: #333;
}

/* If you want to target the entire alert box */
.swal2-popup {
  color: #333; 
}

.status-leave {
  font-size: 24px;
}

.status-leave.wait {
  font-size: 24px;
  color: rgb(238, 145, 24);
}

.status-leave.reject {
  font-size: 24px;
  color: red;
}

.status-leave.accept {
  font-size: 24px;
  color: rgb(20, 107, 179);
}

@media (max-width: 768px) {
  .status-leave {
    font-size: 14px;
  }
  
  .status-leave.wait {
    font-size: 14px;
    color: rgb(238, 145, 24);
  }

  .status-leave.reject {
    font-size: 14px;
    color: red;
  }
  
  .status-leave.accept {
    font-size: 14px;
    color: rgb(20, 107, 179);
  }
}

/* Floating button style */
.floating-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  border-radius: 50%;
  width: 50px; 
  height: 50px; 
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #118ab2;
  color: white;
  font-size: 12px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}

/* add leave */
.floating-btn {
  font-size: 32px;
}

/* Input Form */
.input-form {
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-color);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff; 
  background-clip: padding-box;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.input-form:focus {
  outline: none; 
  border-color: var(--tosca); 
  box-shadow: 0 0 0 0.25rem rgba(0, 180, 219, 0.25); 
}

/*select form */
.select-form {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300B4DB' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  display: block;
  width: 100%;
  padding: .375rem 2.25rem .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-color);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: var(--bs-form-select-bg-img), var(--tosca, none); 
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.select-form:focus {
  outline: none; 
  border-color: var(--tosca); 
  box-shadow: 0 0 0 0.25rem rgba(0, 180, 219, 0.25); 
}

.select-form:disabled {
  background-color: #e9ecef; 
  opacity: 1;
}


select {
  word-wrap: normal;
}


/* Style for the danger class to make the asterisk red */
.span-danger {
  color: red; 
  font-weight: bold;
}

.profile-card {
  width: 240px; 
  height: 240px;
  overflow: hidden;
}

.profile-card img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center;
}


.profile-rounded-circle {
  width: 100px; 
  height: 100px;
  border-radius: 50% !important; 
  border: 2px solid #118ab2 !important;
}

.release-tag {
  display: inline-block; 
  background-color: rgba(0, 0, 0, 0.0); 
  color: var(--tosca);
  font-size: 14px; 
  padding: 5px 10px; 
  border: 1px solid white;
  border-radius: 5px;
  margin-right: 15px; 
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.release-tag:hover {
  background-color: var(--tosca); 
  color: white;
}

@media (max-width: 767px) {
  .release-tag {
    font-size: 12px;
    padding: 5px; 
  }
}

.release-tag-mobile {
  position: absolute;
  top: 10px; 
  right: 10px; 
  background-color: rgba(0, 0, 0, 0.0); 
  color: white;
  font-size: 14px; 
  padding: 8px; 
  border-radius: 5px;
}

.release-tag-mobile:hover {
  background-color: white;
  color: #118ab2;
}


@media (max-width: 767px) {
  .release-tag {
    font-size: 12px; 
    padding: 5px;
  }
}
/* 
#releaseList label {
  font-size: 14px;
  color: #118ab2;
  cursor: pointer;
}

#releaseList label a {
  text-decoration: none;
  color: inherit;
}

#releaseList label a:hover {
  color: white;
} */

/* #releaseList {
  list-style-type: none;
  padding: 0;
} */


/* Password Field Styling */
.password-field {
  position: relative;
}

.password-field .toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  color: #6c757d; 
}

.password-field .toggle-password:hover {
  color: #000;
}

/* Login Page */
.username-icon {
  font-size: 18px;
  color: #118ab2; 
}

/* Memberikan jarak yang konsisten antara tanda titik dua dan nilai */
/* .row div > div {
  margin-left: 10px;
} */


/*Language Switcher */
.language-switcher {
  display: inline-block;
  margin-right: 10px;
}

.language-dropdown {
  padding: 5px 10px;
  font-size: 14px;
  background-color: white;
  color: var(--tosca);
  border: 1px solid var(--tosca);
  border-radius: 5px;
  cursor: pointer;
}

.language-dropdown:hover {
  background-color: var(--tosca);
  color: white;
  border: 1px solid white;
  border-radius: 5px;
}

.language-dropdown:focus {
  outline: none;
  border-color: var(--tosca);
  box-shadow: 0 0 8px rgba(102, 175, 233, .6);
}

/* Blink Red */
.blink-red {
  color: #dc3545 !important;
  /* color: #fff !important; */
  animation: blink 1.5s infinite;
  /* border-radius: 0.35rem; */
  /* box-shadow: 0 0 10px rgba(220, 53, 69, 0.6); */
}

.blink-red i,
.blink-red span {
  color: white;
  animation: blink 1.5s infinite;
}


@keyframes blink {
  0%, 80% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.sidebar-nav .nav-item.blink-red .nav-link,
.sidebar-nav .nav-item.blink-red .nav-link  {
  background-color: #dc3545 !important;
  color: #fff !important;
  animation: blink 1.5s infinite;
  border-radius: 0.35rem;
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.6);
}

.sidebar-nav .nav-item.blink-red .nav-link i {
  color: white;
}

.sidebar-nav .nav-item.blink-red .nav-link span,
.sidebar-nav .nav-item.blink-red .nav-link i {
    animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 80% { opacity: 0.4; }
  50% { opacity: 0.7; }
}



.carousel-inner img,
.carousel-inner video,
.carousel-inner iframe {
    max-height: 500px;
    object-fit: contain;
    margin: 0 auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); 
    background-size: 100% 100%;
    border-radius: 50%;
    padding: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%; 
}