/* ================================================
Custom site.css untuk frontend PortalSSO
============================================ */
 
/* Reset dasar */
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  background-color: #f8f9fa;
  color: #333;
}

/* ================================================
Styling judul halaman / global
============================================ */
.page-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 20px 0 10px;
  text-align: center;
  color: #222;
}
.page-title .subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #555;
  display: block;
  margin-top: 5px;
}

/* Subtitle custom di halaman index */
.subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  color: #333;
}

/* Pastikan header rata tengah */
.content-header {
  text-align: center;
}

/* ================================================
Card umum (global)
============================================ */
.card {
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.card-header {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ================================================
Tombol global
============================================ */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
}
.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}
.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}
.btn-success {
  background-color: #198754;
  border-color: #198754;
}
.btn-success:hover {
  background-color: #157347;
  border-color: #146c43;
}
.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}
.btn-danger:hover {
  background-color: #bb2d3b;
  border-color: #b02a37;
}

/* ================================================
Menu horizontal
============================================ */
.menu-horizontal {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.menu-horizontal a {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #ddd;
  transition: background 0.3s, transform 0.2s, color 0.3s, border-color 0.3s;
}
.menu-horizontal a:hover {
  background: #0056b3;
  color: #fff;
  border-color: #0056b3;
  transform: scale(1.05);
}

/* ================================================
Alert & Small Box
============================================ */
.alert {
  border-radius: 10px;
  font-size: 0.95rem;
}
.small-box {
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.small-box .inner h3 {
  font-size: 32px;
  font-weight: bold;
}
.small-box .inner p {
  font-size: 16px;
  margin-top: 10px;
}
.row .col-lg-3 {
  padding: 10px;
}

/* Navbar user */
.navbar-nav.ml-auto {
  margin-left: auto !important;
}
.nav-item.dropdown {
  margin-left: auto;
}
#userDropdown {
  justify-content: flex-end;
}

/* ================================================
Login page (login-wrapper)
============================================ */
.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  text-align: center;
}

/* Logo */
.login-logo {
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
}

/* Judul utama */
.login-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #222;
  text-align: center;
}

/* Subtitle */
.login-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.4;
  text-align: center;
}

/* Logo login */
.login-wrapper .login-logo {
  max-width: 100px;
  margin-bottom: 15px;
}

/* Judul */
.login-wrapper .login-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Subjudul */
.login-wrapper .login-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
}

/* Card login */
.user-login .card {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
  padding: 15px;
}

/* Header card */
.user-login .card-header {
  text-align: center;
  font-weight: 600;
  font-size: 1.3rem;
}

/* Input form */
.user-login .form-control {
  width: 100%;
  border-radius: 8px;
}

/* Tombol full width */
.user-login .btn-primary {
  width: 100%;
  border-radius: 8px;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
}

/* Input group (password + toggle icon) */
.user-login .input-group .form-control {
  border-right: 0;
}
.user-login .input-group-text {
  background: #fff;
  border-left: 0;
  cursor: pointer;
}

/* Input login */
.login-wrapper .form-control {
  display: block;
  width: 100%;
  height: 45px; /* biar lebih enak diketik */
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* Lebarkan card login agar input tidak sempit */
.login-wrapper .row.align-items-center > div[class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Card tetap dengan batas wajar */
.login-wrapper .card {
  width: 100%;
  max-width: 450px; /* bisa disesuaikan */
  margin: 0 auto;
  padding: 25px;
}

/* ================================================
Layout AdminLTE custom (gabung dari layout.css)
============================================ */

/* Wrapper */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar (atas) - digabung dari .main-header dan .topnav */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: #343a40;
  color: #fff;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: space-between; /* brand kiri, user kanan */
  padding: 0 15px;
}

/* Brand + toggle di kiri */
.main-header .brand {
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
}

/* Tombol Logout di kanan */
.main-header .user a {
  color: #fff;
  background: #dc3545;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.main-header .user a:hover {
  background: #c82333;
}

/* Tombol logout kanan */
.main-header .ml-auto {
  margin-left: auto;
}
.main-header .btn-danger {
  padding: 5px 12px;
  font-size: 14px;
}

/* Sidebar (kiri) - digabung */
.main-sidebar {
  position: fixed;
  top: 50px; /* sejajar navbar */
  left: 0;
  width: 220px;
  height: calc(100% - 50px);
  background: #212529;
  color: #fff;
  padding-top: 20px;
  overflow-y: auto;
  transition: all 0.3s ease;
  z-index: 1000;
}
.main-sidebar a {
  color: #ddd;
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s;
}
.main-sidebar a:hover,
.main-sidebar a.active {
  background: #0d6efd;
  color: #fff;
}

/* ketika sidebar di-hide */
.main-sidebar.hidden {
  margin-left: -220px; /* geser keluar layar */
}

/* Konten (kanan) */
.content-wrapper {
  margin-top: 50px;   /* tinggi navbar */
  margin-left: 220px; /* harus sama dengan .main-sidebar width */
  padding: 20px;
  flex: 1;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.content-wrapper.full {
  margin-left: 0; /* kalau sidebar ditutup */
}





/* Footer */
.main-footer {
  margin-left: 220px; /* juga harus sama */
  background: #343a40;
  color: #fff;
  text-align: center;
  padding: 10px;
}

/* ================================================
Dropdown submenu di sidebar
============================================ */
.menu-group .submenu {
  display: none;
  padding-left: 15px;
  background: #2c3035;
}
.menu-group.open .submenu {
  display: block;
}
.menu-group .menu-title {
  padding: 10px 15px;
  cursor: pointer;
  color: #ddd;
  font-weight: 500;
}
.menu-group .menu-title:hover {
  background: #343a40;
  color: #fff;
}

.breadcrumb {
    margin-top: 10px; /* atau 20px sesuai kebutuhan */
    margin-bottom: 20px;
    background: transparent; /* supaya tidak ada warna latar */
    padding: 0; 
}
.breadcrumb li + li:before {
    content: " / "; /* separator */
    padding: 0 5px;
    color: #6c757d; /* warna separator */
}
