/* === GENERAL === */
body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background-color: #f5f8fa;
  color: #333;
}

/* === NAVBAR === */
.main-header.navbar {
  background-color: #6da9d2;
  border-bottom: 2px solid #5b9bc0;
  padding: 0.5rem;
  min-height: 40px;
}

.navbar-nav > .nav-item {
  margin-right: 5px;
  display: flex;
  align-items: center;
}

.navbar-nav > .nav-item:not(:first-child) > .nav-link {
  position: relative;
  padding-left: 15px;
  font-size: 0.85rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

.navbar-nav > .nav-item:not(:first-child) > .nav-link::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background-color: rgba(255, 255, 255, 0.5);
}

/* Nav link default */
.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Nav link hover */
.navbar-nav .nav-link:hover {
  background-color: #4a89b0 !important;
  color: #ffffff !important;
  border-radius: 8px;
}

/* Nav link active */
.navbar-nav .nav-item.active {
  background-color: #4f94c2;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Icon dalam menu aktif */
.navbar-nav .nav-link.active i {
  color: #ffffff !important;
}

/* Dropdown */
.dropdown-menu {
  min-width: 15rem;
  border: none;
  border-radius: 0 0 8px 8px;
  background-color: #f7fafd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-menu > li > a {
  border-bottom: 2px solid #ddd;
  padding: 8px 15px;
  color: #333;
  font-weight: 500;
}

.dropdown-menu > li:last-child > a {
  border-bottom: none;
}

.dropdown-menu > li > a:hover {
  background-color: #e1f0fa;
  border-left: 4px solid #4a89b0;
  color: #2f648c;
}

.dropdown-menu > li > a.active {
  border-left: 5px solid #dc3545;
  padding-left: 10px;
}

/* Dropdown submenu */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}
.dropdown-item.active, .dropdown-item:active{
    background: linear-gradient(to right, #6da9d2, #a0cde8);
}

.dropdown-submenu > a:after {
  content: "";
  float: right;
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent;
  border-left-color: #ccc;
  margin-top: 5px;
  margin-right: -10px;
}

.dropdown-submenu:hover > a:after {
  border-left-color: #fff;
}

/* === CARD === */
.card {
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
}

.card:hover {
  transform: scale(1.005);
  box-shadow: 0 8px 20px rgba(109, 169, 210, 0.4);
  cursor: pointer;
}

.card-header {
  font-weight: bold;
  border-bottom: 1px solid #5b9bc0;
  border-radius: 10px 10px 0 0;
}

.card .btn {
  background-color: #6da9d2;
  color: #ffffff;
  font-weight: bold;
  border: none;
  transition: 0.3s;
}

.card .btn:hover {
  background-color: #4a89b0;
}

.card .btn.active {
  background-color: #2f648c;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-app:hover {
  box-shadow: 0 4px 8px #4f94c2;
  transform: translateY(-2px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* === TABLE === */
table {
  font-family: 'Inter', sans-serif;
  font-size: 8pt;
  border: 1px solid #999999;
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 0.5em;
  border: 1px solid #969BA5;
  vertical-align: top;
}

th {
  text-transform: uppercase;
  text-align: center;
  font-size: 7pt;
}

.table thead {
  background-color: #6da9d2;
  color: white;
}

/* === DATATABLE === */
.pagination a {
  border-radius: 25px;
  font-size: 12px;
  margin: 0 1px;
}

.page-item.active .page-link {
  background-color: #14b8b8;
  color: white;
  border: 0.5px solid #d0d0d0;
}

div.dataTables_wrapper div.dataTables_info,
div.dataTables_wrapper div.dataTables_filter,
div.dataTables_wrapper div.dataTables_length label {
  font-size: 14px;
}

/* === FORM & BUTTON === */
.form-control-sm {
  height: calc(1.5rem + 1px);
}

button, input[type="submit"], input[type="reset"] {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

/* === HR STYLES === */
hr.dashed {
  border-top: 2px dashed #999;
}

hr.dotted {
  border-top: 2px dotted #999;
}

hr.solid {
  border-top: 2px solid #999;
}

hr.hr-text {
  position: relative;
  border: none;
  height: 1px;
  background: #999;
}

hr.hr-text::before {
  content: attr(data-content);
  display: inline-block;
  background: #fff;
  font-weight: bold;
  font-size: 0.85rem;
  color: #999;
  border-radius: 30rem;
  padding: 0.2rem 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* === RESPONSIVE FIX === */
@media (max-width: 768px) {
  .navbar-nav > .nav-item:not(:first-child) > .nav-link::before {
    display: none;
  }

  .navbar-nav > .nav-item > .nav-link {
    padding-left: 0 !important;
  }
}
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  outline: none; /* hilangkan outline biru default */
  background-color: #f9f9f9;
}

/* Saat aktif/fokus */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border: 2px solid #e74c3c; /* merah solid */
  background-color: #fff;
  box-shadow: none; /* hilangkan glow */
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);

}
