/* =====================================================
   GLOBAL
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html,
body {
  background: #f1f5fb;
  overflow-x: hidden;
}

/* =====================================================
   HEADER (LOGO + NAMA PT)
===================================================== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: #0a66cc;
  color: white;
  padding: 10px 25px;

  display: flex;
  align-items: center;
  gap: 15px;

  z-index: 2000;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.big-logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.25);
  padding: 6px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.title-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.company-title {
  font-size: 19px;
  font-weight: 800;
}

.company-subtitle {
  font-size: 13px;
  color: #dbe9ff;
}

.login-sub {
  font-size: 12px;
  color: #f1f9ff;
}

/* =====================================================
   SIDEBAR
===================================================== */
.sidebar {
  position: fixed;
  top: 75px;
  left: 0;
  width: 240px;
  height: calc(100vh - 75px);
  background: #e9f2ff;
  border-right: 2px solid #c8daf7;
  padding-top: 20px;
  overflow-y: auto;
  z-index: 1500;
}

.sidebar a {
  display: block;
  padding: 15px 22px;
  color: #004c97;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  margin: 4px 10px;
}

.sidebar a.active,
.sidebar a:hover {
  background: #d3e5ff;
}

/* =====================================================
   MAIN CONTENT
===================================================== */
.main {
  margin-left: 240px;
  padding: 120px 50px 50px;
  min-height: 100vh;
}

.title-page {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  color: #004a95;
  margin-bottom: 25px;
}

/* =====================================================
   CARD / BOX UI
===================================================== */
.page-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  max-width: 1100px;
  margin: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Small box for dashboard summary */
.card-compact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  width: 45%;
}

.card-compact .kv {
  font-size: 22px;
  font-weight: 800;
  color: #0a66cc;
}

/* =====================================================
   TABLE STYLE — PREMIUM
===================================================== */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

thead th {
  background: #0a66cc;
  padding: 12px;
  text-align: center;
  color: white;
  white-space: nowrap;
}

tbody td {
  padding: 12px;
  border-bottom: 1px solid #eef1f6;
}

.small-btn {
  padding: 6px 10px;
  background: #0a66cc;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}

.small-btn.green {
  background: #3cb44a !important;
}

/* =====================================================
   FORM ELEMENTS
===================================================== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  font-weight: 600;
  color: #004c97;
}

.small-input,
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd7eb;
  border-radius: 8px;
  font-size: 14px;
}

.form-group input:focus {
  border-color: #0a66cc;
  box-shadow: 0 0 8px rgba(10, 102, 204, 0.25);
}

/* =====================================================
   BUTTON STYLE
===================================================== */
.btn {
  background: #0a66cc;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
}

.btn:hover {
  background: #084c9a;
}

/* =====================================================
   HISTORY TABLE
===================================================== */
.history-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 14px;
  overflow: hidden;
}

.history-table th {
  background: #0a66cc;
  color: white;
  padding: 12px;
  text-align: center;
}

.history-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

/* =====================================================
   RESPONSIVE / MOBILE
===================================================== */
@media (max-width: 900px) {
  .main {
    margin-left: 0;
    padding: 120px 20px 50px;
  }

  .sidebar {
    transform: translateX(-260px);
    transition: 0.25s ease;
  }

  .sidebar.active {
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  .big-logo {
    width: 42px;
    height: 42px;
  }

  .company-title {
    font-size: 16px;
  }

  .company-subtitle {
    font-size: 11px;
  }

  .login-sub {
    font-size: 10px;
  }
}
