/* assets/style.css - tema terang modern */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(209,213,219,0.7);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 600;
  font-size: 14px;
}

.brand-subtitle {
  font-size: 11px;
  color: #6b7280;
}

.topnav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #374151;
}
.nav-link:hover {
  background: #e5edff;
  color: #1d4ed8;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-info {
  text-align: right;
  font-size: 11px;
}
.user-name {
  font-weight: 500;
}
.user-role {
  color: #6b7280;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 8px 16px rgba(37,99,235,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.btn-ghost {
  background: transparent;
  color: #374151;
  border-color: #d1d5db;
}
.btn-ghost:hover {
  background: #f3f4f6;
}

.btn-small {
  padding: 5px 10px;
  font-size: 11px;
}

.page-main {
  min-height: calc(100vh - 52px - 40px);
  padding: 18px 16px 40px;
}

.page-container {
  max-width: 1120px;
  margin: 0 auto;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 25px rgba(15,23,42,0.06);
  margin-bottom: 14px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
}

.card-subtitle {
  font-size: 12px;
  color: #6b7280;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.table th,
.table td {
  padding: 7px 8px;
  border-bottom: 1px solid #e5e7eb;
}
.table th {
  text-align: left;
  font-weight: 600;
  background: #f9fafb;
}
.table tbody tr:hover {
  background: #f3f4ff;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #e5e7eb;
  color: #111827;
}

.badge-pill {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  background: #eff6ff;
  color: #1d4ed8;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  font-family: inherit;
  background: #f9fafb;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.15);
  background: #ffffff;
}
textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.form-col {
  flex: 1;
  min-width: 180px;
}

label {
  font-size: 12px;
  margin-bottom: 3px;
  display: block;
  color: #374151;
}

.form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.text-muted {
  color: #6b7280;
  font-size: 12px;
}

.section-box {
  border-radius: 10px;
  padding: 10px 11px;
  border: 1px solid #e5e7eb;
  margin-bottom: 8px;
  background: #fcfdff;
}

.section-title {
  font-weight: 600;
  font-size: 13px;
}

.section-body {
  font-size: 13px;
  margin-top: 4px;
  white-space: pre-wrap;
  text-align: justify;
}

.page-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px 16px;
  font-size: 11px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .topnav {
    width: 100%;
    justify-content: flex-start;
  }
  .page-main {
    padding: 14px 10px 30px;
  }
}
