/* Google Fonts (Combined Single Request) */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('toast.css');

/* Root Variables */
:root {
  --primary-color: #4a47ff;
  --primary-gradient: linear-gradient(to right, #5754fe 27%, #b281fd 100%);
  --bg-subtle: #f0f0fe;
  --text-main: #171725;
  --text-muted: #6f6f7d;
  --border-color: #e1e4e8;
}

/* Global / Base Styles */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: #fefefe;
  -webkit-font-smoothing: antialiased;
}

mark {
  background-color: #fef08a;
  color: #854d0e;
  padding: 2px 4px;
  border-radius: 5px;
}

/* Min-Height Utilities */
.min-vh-50 { min-height: 50vh; }
.min-vh-75 { min-height: 75vh; }

/* Font Family Utilities */
.ff-plus-jakarta-sans { font-family: "Plus Jakarta Sans", sans-serif; font-optical-sizing: auto; }
.ff-inter { font-family: "Inter", sans-serif; font-optical-sizing: auto; }
.ff-jetbrains-mono { font-family: "JetBrains Mono", monospace; font-optical-sizing: auto; }
.ff-poppins { font-family: "Poppins", sans-serif; }

/* Font Size Utilities */
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-25 { font-size: 25px; }

/* Common Component: Icon Box */
.icon-box {
  width: 54px;
  height: 54px;
  background-color: #f0edff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #635bff;
  font-size: 1.5rem;
}

/* Section Title */
.section-title {
  gap: 14px;
}

.section-title span {
  color: #646970;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
}

.section-line {
  height: 3px;
  background-color: var(--border-color);
}

/* Navbar */
.navbar {
  padding: 10px 0;
  background-color: #ffffff;
  border-bottom: #e5e5eb 1px solid;
}

.navbar a.navbar-brand {
  color: var(--primary-color);
  font-weight: 600;
}

.navbar ul.navbar-nav li.nav-item a.nav-link {
  padding: 12px 21px;
  border-radius: 5px;
  transition: all 0.3s ease; /* Diubah dari 0.9s agar transisi lebih alami */
}

.navbar ul.navbar-nav li.nav-item a.nav-link:hover {
  background-color: var(--bg-subtle);
  color: #7b79ff;
}

/* Hero Base & Grid Background */
.hero-pattern {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(100, 100, 140, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 100, 140, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 65% 75% at 50% 30%, #000 0%, rgba(0, 0, 0, 0.8) 35%, rgba(0, 0, 0, 0.3) 65%, transparent 100%);
  mask-image: radial-gradient(ellipse 65% 75% at 50% 30%, #000 0%, rgba(0, 0, 0, 0.8) 35%, rgba(0, 0, 0, 0.3) 65%, transparent 100%);
  pointer-events: none;
}

/* Main Hero */
.hero {
  padding: 171px 0;
  max-width: 720px;
}

.hero .hero-badge,
.student .hero .hero-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: var(--bg-subtle);
  color: #6f6df0;
}

.hero .hero-title {
  color: var(--text-main);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.text-gradient {
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .hero-description {
  max-width: 720px;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero .btn {
  border: none;
  will-change: transform;
}

.hero .btn-primary {
  background-color: var(--primary-color);
  padding: 12px 24px;
  transform: scale(1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, box-shadow 0.5s ease;
}

.hero .btn-primary:hover {
  transform: scale(1.035);
  box-shadow: 0 6px 20px rgba(74, 71, 255, 0.16);
}

.hero .btn-primary:active {
  transform: scale(0.99);
}

/* 404 Page */
.page-404-content {
  width: 100%;
  max-width: 450px;
}

/* Table Residu */
.table-residu .card {
  border: 0;
}

.table-residu .card .card-body {
  border: #e0e0e0 1px solid;
  background-color: #ffffff;
}

.table-residu .stats-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #746cff;
}

/* Access / Auth Pages */
.access .img-fluid {
  max-width: 450px !important;
  max-height: 450px !important;
}

.access .alert {
  border: 0;
  border-radius: 5px;
}

.access .alert-danger {
  background-color: #fef4f6;
  color: #ef516e;
}

.access .alert-success {
  background-color: #ecfbf6;
  color: #35d195;
}

.access .card {
  border: 0;
}

.access .card .card-body {
  border: var(--border-color) 1px solid;
  border-radius: 5px;
}

.access .card .card-body .form-floating > .form-control {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.access .card .card-body .form-control {
  padding: 18px 13px;
  border-radius: 5px;
  line-height: 27px;
}

.access .card .card-body .form-control:focus,
.access .card .card-body .form-control:active {
  outline: none !important;
  box-shadow: none !important;
  border: var(--border-color) 1px solid;
}

.access .card .card-body .btn {
  border: 0;
  border-radius: 5px;
}

.access .card .card-body .btn-primary {
  padding: 18px 45px;
  font-weight: 500;
}

.access .card .card-body .btn-light {
  padding: 8px 16px;
  background-color: #ffffff;
  border: #e4e4e4 1px solid;
  color: #272727;
}

.access .card .card-body .btn-light:hover {
  background-color: #ffffff;
  border: #b1b1b1 1px solid;
}

.access .card .card-body .btn-danger {
  padding: 8px 16px;
  background-color: #ef516e;
  color: #ffffff;
}

/* Student Section */
.student .hero {
  padding: 90px 0;
}

.student .hero .hero-title {
  color: var(--text-main);
  font-size: clamp(20px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 2px;
}

.student .hero .hero-description {
  color: var(--text-muted);
  line-height: 1.7;
  letter-spacing: 3px;
}

.student .card {
  border: 0;
}

.student .card .card-body {
  border: #e0e0e0 1px solid;
  background-color: #fefefe;
  border-radius: 5px;
}

.student .card .card-body .card .card-body {
  border: #e6e6e6 1px solid;
  border-radius: 5px;
  background-color: #f9f9f9;
}

/* Dashboard Component Styles */
.dashboard .card {
  border: 0;
}

.dashboard .card .card-body {
  border: var(--border-color) 1px solid;
  border-radius: 5px;
}

.dashboard .card .card-body .feature-title {
  font-weight: 700;
  color: #0a2540;
  font-size: 1.15rem;
}

.dashboard .card .card-body .feature-desc {
  color: #697386;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background-color: #fefefe;
  border-top: #eaeaea 1px solid;
  color: #8d8da8;
}
