body {
font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial;
margin: 0;
background: #f4f6f9;
color: #111;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header h1 {
margin: 0 0 20px;
font-size: 28px;
}
.topbar {
display: flex;
gap: 24px;
margin-bottom: 24px;
flex-wrap: wrap;
}
.topbar form {
background: #fff;
padding: 16px;
border-radius: 12px;
box-shadow: 0 2px 6px rgba(0,0,0,.08);
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
}
input, textarea, button {
padding: 8px 10px;
border-radius: 8px;
border: 1px solid #ccc;
font-size: 14px;
}
button {
background: #0077ff;
color: white;
border: none;
cursor: pointer;
}
button:hover {
background: #005fcc;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
gap: 16px;
}
.card {
background: #fff;
padding: 16px;
border-radius: 12px;
box-shadow: 0 2px 6px rgba(0,0,0,.08);
display: flex;
flex-direction: column;
justify-content: space-between;
}
.meta strong {
font-size: 16px;
display: block;
margin-bottom: 6px;
}
.meta .small {
}

body {
  margin: 0;
  background: #f5f7fa;
  font-family: Arial, sans-serif;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;            /* tinggi header */
  background: #0077ff;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 20px; /* padding-top disesuaikan dengan header */
}

body {
  margin: 0;
  background: #f5f7fa;
  font-family: Arial, sans-serif;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #0077ff;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  z-index: 1000;
}

header .nav-container {
  max-width: 1200px;
  height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

header .logo {
  font-weight: bold;
  font-size: 20px;
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-size: 15px;
  transition: opacity .2s;
}

header nav a:hover {
  opacity: 0.8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 20px; /* padding-top biar gak ketiban header */
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px; /* jarak icon dan teks */
  transition: opacity .2s;
}

header nav a:hover {
  opacity: 0.85;
}

.login-card {
  max-width: 400px;
  margin: 100px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  text-align: center;
}

.login-card h2 {
  margin-bottom: 20px;
  color: #333;
}

.error {
  background: #ffe0e0;
  color: #c00;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.input-group {
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
}

.input-group i {
  color: #777;
  margin-right: 8px;
}

.input-group input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  background: transparent;
}

.btn-primary {
  background: #0077ff;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .2s;
}

.btn-primary:hover {
  background: #005fd1;
}

/* ==================================== */
/* 2. Logo Container (Resizable) */
/* ==================================== */
.logo-container {
    /* Hapus 'position: absolute/fixed' yang mungkin ada */
    
    /* Ukuran dan margin: Tentukan ukuran yang wajar di dalam card */
    width: 180px; 
    height: 80px; /* Ukuran ini menyesuaikan rasio logo Anda */
    margin: 0px auto 25px auto; /* Tengah, dengan jarak bawah ke judul */
    
   
    
    /* Bersihkan tampilan yang tidak perlu */
    border: none; /* Hilangkan border jika Anda tidak menginginkannya */
    padding: 0;
}

.logo-container img {
    /* Memastikan gambar mengisi kontainer */
    width: 100%;
    height: 100%;
    
    /* Menjaga rasio aspek logo agar tidak gepeng */
    object-fit: contain; 
}

.task-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
}

.task-table th, .task-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.task-table th {
  background: #f4f6f8;
}

.task-table tr:hover {
  background: #f9fbff;
}

.task-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
}

.task-table th, .task-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.task-table th {
  background: #f4f6f8;
}

.task-table tr:hover {
  background: #f9fbff;
}

.timeline {
  position: relative;
  margin: 30px 0;
  padding-left: 40px;
  border-left: 3px solid #0077ff;
}

.timeline-item {
  margin-bottom: 25px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0077ff;
  box-shadow: 0 0 0 3px #eaf2ff;
}

.timeline-time {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.timeline-content {
  background: #fff;
  padding: 12px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.timeline-content h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #0077ff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.dash-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
}

.dash-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #0077ff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dash-card p {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
  color: #333;
}

.chart-container {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
  margin-top: 30px;
}

.card-form {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  margin-top: 20px;
}

.modern-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0077ff;
  box-shadow: 0 0 0 2px rgba(0,119,255,.1);
}

.form-subsection {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.form-subsection h3 {
  margin-bottom: 10px;
  color: #0077ff;
  font-size: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-primary, .btn-secondary {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: #0077ff;
  color: #fff;
}

.btn-primary:hover {
  background: #005fd1;
}

.btn-secondary {
  background: #f4f6f8;
  color: #333;
}

.btn-secondary:hover {
  background: #e1e4e8;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  margin: 20px 0;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.styled-table th, .styled-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.styled-table th {
  background: #f4f6f8;
  font-weight: 600;
}

.styled-table tr:hover {
  background: #f9fbff;
}

.badge {
  background: #0077ff;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.btn-link {
  color: #0077ff;
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-link.danger {
  color: #dc3545;
}

/* Modern form */
.modern-form {
  display: grid;
  gap: 15px;
}

.modern-form .form-group {
  display: flex;
  flex-direction: column;
}

.modern-form label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.modern-form input,
.modern-form select {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .2s;
}

.modern-form input:focus,
.modern-form select:focus {
  border-color: #0077ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,119,255,.1);
}

.form-actions {
  text-align: right;
}

.btn-primary {
  background: #0077ff;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  background: #005fd1;
}

.viewer {
  margin-top: 20px;
  text-align: center;
}

.doc-image {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.doc-frame {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.card-form {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  margin-top: 20px;
  max-width: 600px;
}

.modern-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0077ff;
  box-shadow: 0 0 0 2px rgba(0,119,255,.1);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-primary, .btn-secondary {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-primary {
  background: #0077ff;
  color: #fff;
}

.btn-primary:hover {
  background: #005fd1;
}

.btn-secondary {
  background: #f4f6f8;
  color: #333;
}

.btn-secondary:hover {
  background: #e1e4e8;
}

.card-form {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  margin-top: 20px;
  max-width: 600px;
}

.modern-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0077ff;
  box-shadow: 0 0 0 2px rgba(0,119,255,.1);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-primary, .btn-secondary {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-primary {
  background: #0077ff;
  color: #fff;
}

.btn-primary:hover {
  background: #005fd1;
}

.btn-secondary {
  background: #f4f6f8;
  color: #333;
}

.btn-secondary:hover {
  background: #e1e4e8;
}
/* === Document List === */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease-in-out;
}

.doc-row:hover {
  background: #f9fafb;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.doc-info {
  flex: 1;
}

.doc-info strong {
  font-size: 1.05rem;
  color: #222;
}

.doc-info .badge {
  display: inline-block;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 6px;
}

.doc-info .small {
  font-size: 0.8rem;
  color: #666;
}

.doc-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.doc-actions a,
.doc-actions button {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}

.doc-actions a {
  background: #f1f5f9;
  color: #111;
}

.doc-actions a:hover {
  background: #e2e8f0;
}

.doc-actions .btn-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.doc-actions .btn-danger:hover {
  background: #fecaca;
}
/* === Responsive tweaks === */
@media (max-width: 768px) {
  .doc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .doc-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .doc-actions a,
  .doc-actions button {
    flex: 1 1 auto;
    text-align: center;
  }
}

body.main-body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f6fa;
  color: #333;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1d3557;
  color: #fff;
  padding: 10px 20px;
}

.main-header .logo {
  height: 50px;
}

.main-header .center {
  flex-grow: 1;
  text-align: center;
  font-size: 16px;
}

.main-header .btn-logout {
  background: #e63946;
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
}

.main-content {
  padding: 40px;
  text-align: center;
}

.menu-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.menu-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #1d3557;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, background 0.2s;
}

.menu-card:hover {
  transform: translateY(-5px);
  background: #f1faee;
}

