/* ==========================================
   1. GLOBAL & VARIABLES
   ========================================== */
:root {
  --font-main:
    "Inter", Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  /* Palette Warna Utama */
  --primary: #ef568a;
  --secondary: #2196f3;
  --secondary-hover: #0b7dda;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --disabled: #c7c6c6;

  /* Shadow & Radius */
  --radius: 8px;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}
.col-25 {
  float: left;
  width: 25%;
  margin-top: 2px;
}

.col-75 {
  float: left;
  width: 75%;
  margin-top: 2px;
  text-align: left;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .col-25,
  .col-75 {
    width: 100%;
    margin-top: 0;
  }
}

/* Responsive Mobile */
@media screen and (max-width: 768px) {
  .col-25,
  .col-75,
  .bagi_kolom {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

h4,
option,
select,
input,
button {
  font-family: var(--font-main);
}

/* ==========================================
   2. BUTTON BASE & ANIMATIONS
   ========================================== */
button,
.button,
.btn-action,
[class^="tombol-"],
[class^="loginbtn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  padding: 8px 14px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: #ffffff !important;
  background-color: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s ease-in-out;
  outline: none;
  margin: 2px;
  white-space: nowrap;
}

button:hover,
.button:hover,
.btn-action:hover,
[class^="tombol-"]:hover,
[class^="loginbtn"]:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  filter: brightness(0.92);
}

button:active,
.button:active,
.btn-action:active,
[class^="tombol-"]:active,
[class^="loginbtn"]:active {
  transform: translateY(0);
}

/* Base style untuk ikon FontAwesome di dalam tombol */
.btn-action .fa {
  font-size: 14px;
}

/* ==========================================
   3. VARIAN WARNA TOMBOL TABEL / AKSI
   ========================================== */
/* Unduh */
.btn-unduh,
.tombol-hijau-muda {
  background-color: #10b981 !important;
}

/* Impor */
.btn-impor,
.btn-import,
.tombol-merah-muda {
  background-color: #f97316 !important;
}

.tombol-unduh-template {
  background-color: #c4183c !important;
}

.input-data {
  background-color: #1e9f75 !important;
}

/* Ekspor */
.btn-ekspor,
.btn-export,
.tombol-biru {
  background-color: #0284c7 !important;
}

/* Cetak */
.btn-cetak,
.tombol-purple {
  background-color: #6366f1 !important;
}

/* Lihat/View */
.btn-lihat,
.btn-view,
.tombol-pink {
  background-color: #f59e0b !important;
}

/* Tombol Khusus Lainnya */
.button3 {
  background-color: transparent !important;
  color: #008cba !important;
  border: 1px solid #008cba;
}

.button3:hover {
  background-color: #008cba !important;
  color: #ffffff !important;
}

/* Disabled State */
.disabled_1,
.tombol-disabled,
button:disabled {
  background-color: var(--disabled) !important;
  color: #71717a !important;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}

/* ==========================================
   4. FORM PENCARIAN (SEARCH FORM)
   ========================================== */
form.example {
  display: flex;
  width: 100%;
}

form.example input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius) 0 0 var(--radius);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

form.example input[type="text"]:focus {
  border-color: var(--secondary);
}

form.example button {
  padding: 10px 16px;
  background: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0;
  box-shadow: none;
}

form.example button:hover {
  background: var(--secondary-hover);
  border-color: var(--secondary-hover);
  transform: none;
}

/* ==========================================
   5. LAYOUT & TYPOGRAPHY
   ========================================== */
.action-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* .row,
.row_kolom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.bagi_kolom {
  flex: 1 1 calc(50% - 16px);
  padding: 8px;
} */

.bawah {
  margin-top: 12px;
}

.pesan_kecil {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.pesan_kecil1 {
  font-size: 13px;
  color: var(--secondary);
  font-weight: 500;
}
html,
body,
h1,
h2,
h3,
h4,
h5 {
  font-family: "Arial", Arial;
}

.badge {
  position: absolute;
  padding: 0px 7px;
  border-radius: 50%;
  background-color: #89be4f;
  color: white;
  margin-right: 500px;
}

.badge_ganti {
  position: absolute;
  padding: 0px 7px;
  border-radius: 50%;
  background-color: #f76370;
  color: white;
  margin-right: 500px;
}
::-webkit-scrollbar {
  width: 3px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #6bb2a2;
  box-shadow: inset 0 0 5px grey;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
  background: #6bb2a2;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
  width: 10px;
}

/* ==========================================
   FIELDSET & LEGEND MODERN UI
   ========================================== */

fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 5px 24px;
  background-color: #ffffff;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.03),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Efek subtle hover pada container form */
fieldset:hover {
  border-color: #d1d5db;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

legend {
  background: linear-gradient(135deg, #d97706, #ca9834);
  color: #ffffff;
  font-family: "Arial", Arial, sans-serif;
  font-size: 14px;
  /* font-weight: 600; */
  letter-spacing: 0.3px;
  padding: 6px 16px !important;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(202, 152, 52, 0.25);
  margin-left: 12px; /* Posisi teks agak masuk ke dalam */
}

fieldset.bawah,
fieldset.bawah table {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none !important;
}

/* ==========================================
   TOMBOL KEMBALI / CANCEL MODERN UI
   ========================================== */

.btn-kembali {
  background-color: #6b7280 !important; /* Neutral Cool Gray */
  color: #ffffff !important;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease-in-out;
}

.btn-kembali:hover {
  background-color: #4b5563 !important; /* Darker Gray saat hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
}

.btn-kembali:active {
  transform: translateY(0);
}
