
:root {
  --ui-font: 'Nunito', 'Segoe UI', Tahoma, Arial, sans-serif;
  --ui-bg: #f5f7fb;
  --ui-surface: #ffffff;
  --ui-ink: #0f172a;
  --ui-muted: #64748b;
  --ui-primary: #0f766e;
  --ui-primary-600: #0b5f59;
  --ui-accent: #f59e0b;
  --ui-border: #e2e8f0;
  --ui-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ui-font) !important;
  color: var(--ui-ink);
  background: radial-gradient(1200px 600px at 100% -10%, #dbeafe 0%, rgba(219, 234, 254, 0) 55%),
              radial-gradient(1000px 500px at -10% 0%, #fef3c7 0%, rgba(254, 243, 199, 0) 50%),
              var(--ui-bg);
}

.section > *:first-child {
  margin-top: 0;
}

.auth-page {
  background: radial-gradient(1100px 650px at 0% 0%, #d1fae5 0%, rgba(209, 250, 229, 0) 55%),
              radial-gradient(1000px 600px at 100% 0%, #e0f2fe 0%, rgba(224, 242, 254, 0) 55%),
              #f8fafc;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.auth-hero {
  padding: 64px 72px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(14, 116, 144, 0.15)),
              url("../../assets/style/images/hero_4.jpeg") center/cover no-repeat;
  position: relative;
  color: #0f172a;
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
}

.auth-hero-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: rgba(255, 255, 255, 0.9);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--ui-surface);
  border-radius: 18px;
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow);
  padding: 28px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--ui-primary);
}

.auth-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  margin: 16px 0 6px;
}

.auth-subtitle {
  color: var(--ui-muted);
  margin-bottom: 20px;
}

.auth-meta {
  margin-top: 16px;
  color: var(--ui-muted);
  font-size: 13px;
  text-align: center;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.main-content {
  padding-top: 90px;
}

.card {
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  box-shadow: var(--ui-shadow);
}

.card .card-header {
  border-bottom: 1px solid var(--ui-border);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.section-header h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.navbar {
  backdrop-filter: blur(8px);
}

.navbar .nav-link {
  color: var(--ui-ink) !important;
}

.dropdown-menu {
  border-radius: 12px;
  border: 1px solid var(--ui-border);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.dropdown-menu .dropdown-item {
  padding: 10px 16px;
  width: 100%;
}

.dropdown-menu .dropdown-item.has-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu form.dropdown-item {
  padding: 0;
}

.dropdown-menu form.dropdown-item button.dropdown-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
}

.dropdown-menu form.dropdown-item button.dropdown-item:hover {
  background: #f8fafc;
}

.navbar-bg {
  background: transparent !important;
}

.main-navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--ui-border);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.sidebar-brand a,
.sidebar-brand-sm a {
  font-weight: 800;
  color: var(--ui-primary) !important;
}

.btn-primary {
  background: var(--ui-primary) !important;
  border-color: var(--ui-primary) !important;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover {
  background: var(--ui-primary-600) !important;
  border-color: var(--ui-primary-600) !important;
}

.btn-warning {
  background: var(--ui-accent) !important;
  border-color: var(--ui-accent) !important;
  color: #1f2937 !important;
}

.form-control,
.custom-select,
select.form-control {
  border-radius: 10px;
  border: 1px solid var(--ui-border);
}

.form-control:focus,
.custom-select:focus,
select.form-control:focus {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.15);
}

.table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

.table thead th {
  border: none !important;
  color: var(--ui-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.table tbody tr {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.04);
}

.table tbody td {
  border-top: none !important;
}

.table tbody tr td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.table tbody tr td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.alert {
  border-radius: 12px;
}

.badge {
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}

.badge-soft {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
}

.badge-soft.success {
  background: #dcfce7;
  color: #166534;
}

.badge-soft.warn {
  background: #fef3c7;
  color: #92400e;
}

.badge-soft.info {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-jurusan-tkjt {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
}

.badge-jurusan-pplg {
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
}

.badge-jurusan-kubinar {
  background: #ede9fe;
  color: #5b21b6;
  font-weight: 700;
}

.action-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.action-btn-group .btn {
  min-width: 34px;
}

.dash-hero {
  background: linear-gradient(120deg, rgba(15, 118, 110, 0.15), rgba(59, 130, 246, 0.12));
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  padding: 14px 20px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-hero h2 {
  font-size: 22px;
  line-height: 1.2;
}

.dash-hero p {
  font-size: 14px;
  margin-top: 4px;
}

.section > .dash-hero:first-child {
  margin-top: 0;
}

.section > .section-card:first-child,
.section > .form-section:first-child {
  margin-top: 0;
}

.dash-hero h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash-hero p {
  margin: 6px 0 0;
  color: var(--ui-muted);
}

.dash-hero-copy {
  flex: 1 1 520px;
  min-width: 280px;
}

.dash-hero-tools {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) auto;
  align-items: end;
  justify-content: end;
  gap: 10px 12px;
  margin: 0;
  width: min(100%, 760px);
}

.dash-hero-filter {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.dash-hero-filter label {
  margin: 0;
  font-weight: 700;
  color: #1e3a8a;
  white-space: nowrap;
  font-size: 13px;
}

.dash-hero-filter select {
  min-width: 0;
  width: 100%;
  max-width: none;
}

.dash-hero-add-btn {
  white-space: nowrap;
}

.dash-hero-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.stat-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--ui-shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ui-primary);
  box-shadow: 0 8px 16px rgba(15, 118, 110, 0.25);
}

.stat-content h4 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ui-muted);
}

.stat-content .stat-value {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
}

.section-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--ui-shadow);
}

.summary-warn {
  border-color: #f59e0b;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.15);
}

.summary-success {
  border-color: #22c55e;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.15);
}

.form-section {
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.form-section h5 {
  font-weight: 700;
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.form-full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.sticky-save {
  position: sticky;
  bottom: 0;
  z-index: 10;
  padding: 12px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--ui-border);
  border-radius: 12px;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
}

@media (max-width: 575.98px) {
  .sticky-save {
    padding: 10px;
  }
}

@media (max-width: 991.98px) {
  .main-content {
    padding-top: 80px;
  }
  .navbar .navbar-right {
    margin-left: 0;
  }
  .table-responsive {
    overflow-x: auto;
  }
  .table {
    min-width: 700px;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    padding: 40px 28px;
    min-height: 240px;
  }
  .auth-panel {
    padding: 32px 20px 48px;
  }
  .dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .dash-hero-tools {
    width: 100%;
    grid-template-columns: 1fr;
    justify-content: flex-start;
  }
  .dash-hero-filter {
    width: 100%;
  }
  .dash-hero-filter select {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .dash-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .form-grid,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .card {
    border-radius: 12px;
  }
  .btn {
    width: 100%;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .dash-hero {
    padding: 16px;
  }
  .section-card,
  .form-section {
    padding: 14px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-content .stat-value {
    font-size: 20px;
  }
  .auth-card {
    padding: 22px;
  }
  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
