

/* ===============================================
   CLICKABLE CONTACT CARDS - NEW DESIGN
   =============================================== */

/* Header Section */
.kontak-info-section {
  margin-top: 1.5rem;
}

.kontak-info-header {
  text-align: center;
  margin-bottom: 1rem;
}

.kontak-info-title {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
}

/* Contact Cards Grid Layout - Desktop Mode: All 3 cards in one row */
.kontak-cards-grid {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  align-items: stretch;
  margin-bottom: 15px;
}

.kontak-cards-grid .col-12.col-md-4 {
  padding: 0;
  flex: 1;
  display: flex;
  min-width: 0;
}

/* Individual Clickable Contact Cards - Desktop: 10% shorter */
.kontak-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 18px 15px;
  text-align: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 108px; /* Reduced from 120px (10% shorter) */
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.kontak-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  text-decoration: none;
}

.kontak-card:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  color: white;
  text-decoration: none;
}

/* Contact Card Elements */
.kontak-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.kontak-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #f8f9fa;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.kontak-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.kontak-card:hover .kontak-link {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.kontak-label {
  font-size: 0.7rem;
  color: #e9ecef;
  line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Specific Card Type Styling */
.kontak-card.microsite-card {
  background: linear-gradient(
    135deg,
    rgba(76, 110, 245, 0.2),
    rgba(54, 79, 199, 0.15)
  );
  border-color: rgba(76, 110, 245, 0.4);
}

.kontak-card.microsite-card:hover {
  background: linear-gradient(
    135deg,
    rgba(76, 110, 245, 0.3),
    rgba(54, 79, 199, 0.25)
  );
}

.kontak-card.whatsapp-card {
  background: linear-gradient(
    135deg,
    rgba(81, 207, 102, 0.2),
    rgba(64, 192, 87, 0.15)
  );
  border-color: rgba(81, 207, 102, 0.4);
}

.kontak-card.whatsapp-card:hover {
  background: linear-gradient(
    135deg,
    rgba(81, 207, 102, 0.3),
    rgba(64, 192, 87, 0.25)
  );
}

.kontak-card.email-card {
  background: linear-gradient(
    135deg,
    rgba(51, 154, 240, 0.2),
    rgba(34, 139, 230, 0.15)
  );
  border-color: rgba(51, 154, 240, 0.4);
  min-height: 90px; /* Reduced from 100px (10% shorter) */
}

.kontak-card.email-card:hover {
  background: linear-gradient(
    135deg,
    rgba(51, 154, 240, 0.3),
    rgba(34, 139, 230, 0.25)
  );
}

/* Responsive Design */
@media (min-width: 992px) {
  /* Desktop Mode: All 3 cards sejajar dalam satu baris */
  .kontak-cards-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: stretch;
    margin-bottom: 15px;
  }

  .kontak-cards-grid .col-12.col-md-4 {
    flex: 1;
    display: flex;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 991.98px) {
  .kontak-cards-grid {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
  }

  .kontak-cards-grid .col-12.col-md-4 {
    flex: none;
    width: 100%;
  }

  .kontak-card {
    min-height: 90px; /* Mobile: 10% shorter dari 100px */
    padding: 13px 12px; /* Mobile: 10% shorter dari 15px */
  }

  .kontak-card.email-card {
    min-height: 77px; /* Mobile: 10% shorter dari 85px */
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .kontak-card {
    min-height: 90px;
    padding: 12px 10px;
  }

  .kontak-card.email-card {
    min-height: 80px;
  }

  .kontak-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
  }

  .kontak-title {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .kontak-link {
    font-size: 0.7rem;
    padding: 4px 8px;
    margin-bottom: 6px;
  }

  .kontak-label {
    font-size: 0.65rem;
  }
}

/* ===============================================
   MODERN HOME PAGE STYLES - STATIC & RESPONSIVE
   =============================================== */

/* Reset dan Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  min-height: 100vh;
  overflow-y: auto !important;
  /* Allow scrolling if content overflows viewport */
  overflow-y: auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}
/* Background Pattern */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    );
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
  pointer-events: none;
  z-index: 1;
}
/* Container Utama */
.module-home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  padding-bottom: 60px; /* Tambah ruang bawah agar konten tidak tertutup */
}
/* ===============================================
   HEADER SECTION
   =============================================== */
.module-home-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}
.logo-container {
  margin-bottom: 10px;
}
.logo-container img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
  max-width: 150px !important; /* Increase logo size */
  height: auto;
}
.logo-container img:hover {
  transform: scale(1.05);
}
.module-home-header-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0;
  position: relative;
  background: linear-gradient(
    90deg,
    #2c3e50 0%,
    #34495e 20%,
    #5dade2 40%,
    #85c1e9 50%,
    #5dade2 60%,
    #34495e 80%,
    #2c3e50 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: subtleShimmer 4s ease-in-out infinite;
}
/* Subtle Shimmer Animation */
@keyframes subtleShimmer {
  0% {
    background-position: 200% 0%;
  }
  50% {
    background-position: -200% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}
/* Remove the shine effect overlay */
.module-home-header-text::before {
  display: none;
}
/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
  .module-home-header-text {
    background: none;
    -webkit-text-fill-color: initial;
    color: #2c3e50;
    animation: none;
  }
  .module-home-header-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(93, 173, 226, 0.3) 50%,
      transparent 100%
    );
    animation: gentleGlow 3s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes gentleGlow {
    0%,
    100% {
      opacity: 0;
      transform: translateX(-100%);
    }
    50% {
      opacity: 1;
      transform: translateX(100%);
    }
  }
}
/* ===============================================
   MAIN CONTENT SECTION
   =============================================== */
.module-home-content {
  flex: 1;
  padding: 15px 8px 0px 8px; /* Remove bottom padding */
  display: flex;
  align-items: stretch;
  /* Allow content to grow so the page can scroll. Use a min-height to keep
     the intended viewport fill but let actual height expand when content
     is taller than the viewport. */
  min-height: calc(100vh - 120px);
  height: auto;
  overflow: visible;
}
.module-home-content .container-fluid {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.module-home-content .row {
  margin: 0;
  width: 100%;
}
.module-home-content .col-12,
.module-home-content .col-lg-4,
.module-home-content .col-lg-8,
.module-home-content .col-xl-4,
.module-home-content .col-xl-8 {
  display: flex;
  flex-direction: column;
  padding: 0 8px;
  margin-bottom: 0; /* Remove bottom margin */
  /* height: 100%;  -- REMOVE this so flex child can grow naturally */
  min-height: 0;
}
.module-home-content,
body:not(.modal-open) {
  overflow: auto !important;
}
/* ===============================================
   GLASS CARD EFFECTS
   =============================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.2);
}
/* ===============================================
   LEFT COLUMN - FORM & HISTORY
   =============================================== */
.module-home-content .col-12.col-lg-4.col-xl-4 {
  display: flex;
  flex-direction: column;
  padding: 0 8px;
  margin-bottom: 0;
  height: 100%;
}
.module-home-form-card {
  margin-bottom: 12px;
  flex: 0 0 auto;
}
.module-home-history-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.module-home-form-header,
.module-home-history-header {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 20px 20px 0 0;
}
.module-home-form-title,
.module-home-history-title {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.module-home-form-body,
.module-home-history-body {
  padding: 20px; /* Reset form body to original 20px */
  color: white;
}
.module-home-form-body {
  min-height: auto; /* Remove minimum height for form */
}
/* History Table */
.module-home-history-body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px; /* Reduce from 25px to 22px */
  min-height: 320px; /* Reduce from 350px to 320px */
}
/* Form Styles */
.module-home-form-label {
  color: white;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.module-home-form-control {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 1rem;
  color: #2c3e50;
  transition: all 0.3s ease;
}
.module-home-form-control:focus {
  background: rgba(255, 255, 255, 1);
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
  outline: none;
}
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  padding: 12px 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
/* History Table */
.module-home-history-body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px; /* Reduce from 25px to 22px */
  min-height: 320px; /* Reduce from 350px to 320px */
}
.table-responsive {
  flex: 1;
  overflow-y: auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  min-height: 0;
}
.module-home-table {
  color: white;
  margin: 0;
}
.module-home-table th {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-weight: 600;
  padding: 12px 8px;
  font-size: 0.85rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.module-home-table td {
  border: none;
  padding: 10px 8px;
  font-size: 0.8rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.module-home-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.1);
}
.badge {
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 500;
}
.badge-success {
  background: #28a745;
  color: white;
}
.badge-secondary {
  background: #6c757d;
  color: white;
}
/* ===============================================
   RIGHT COLUMN - STATISTICS DASHBOARD  
   =============================================== */
.module-home-charts-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  height: 80%;
  min-height: 600px; /* Tinggikan agar isi card NISN tidak terpotong */
}
.module-home-charts-header {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}
.module-home-charts-title {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.module-home-charts-body {
  flex: 1;
  padding: 15px 15px 30px 15px; /* beri ekstra padding-bottom */
  overflow: visible; /* agar isi tidak di-scroll, selalu terlihat */
  display: flex;
  flex-direction: column;
  min-height: 120px; /* tetap tinggi minimum agar isi tidak terpotong */
}



/* ===============================================
   NISN PROFILE PAGE STYLES
   =============================================== */
.nisn-profile-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  padding: 20px 0 100px 0; /* Add bottom padding to prevent footer overlap */
  overflow-y: auto !important;
}
.nisn-profile-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    );
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
  pointer-events: none;
  z-index: 1;
}
/* Header Card */
.nisn-header-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
}
.school-logo {
  margin-bottom: 15px;
}
.logo-img {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}
.logo-img:hover {
  transform: scale(1.05);
}
.school-title {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.page-subtitle {
  color: #5a6c7d;
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0;
}
/* Main Profile Card */
.nisn-main-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
  animation: slideUp 0.6s ease-out;
}
/* Extra scroll safety for mobile: force scroll on parent containers */
@media (max-width: 767.98px) {
  .nisn-profile-page .container-fluid,
  .nisn-profile-page .row {
    overflow-y: auto !important;
    max-height: 100vh;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Student Header */
.student-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 25px;
  color: white;
  text-align: center;
}
.student-identity h4 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  color: white; /* Ensure name is white */
}
.student-nisn {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
  opacity: 0.9;
}
.student-status {
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Photo Section */
.photo-section {
  background: rgba(248, 249, 250, 0.8);
  border-radius: 20px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.student-photo {
  margin-bottom: 20px;
}
.student-avatar {
  width: 150px;
  height: 200px; /* 3:4 ratio (150px width : 200px height) */
  border-radius: 15px; /* Change from 50% to rectangular with rounded corners */
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.student-avatar:hover {
  transform: scale(1.05);
}
.photo-label,
.qr-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
  margin-top: 10px;
}
.qr-section {
  text-align: center;
}
.qr-code {
  width: 120px;
  height: 120px;
  border-radius: 15px;
  border: 2px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* Information Cards */
.info-card,
.notice-card {
  background: rgba(248, 249, 250, 0.9);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover,
.notice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.info-header,
.notice-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
}
.info-header i,
.notice-header i {
  margin-right: 8px;
  font-size: 1.1rem;
}
.info-body,
.notice-body {
  padding: 40px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.info-row:last-child {
  border-bottom: none;
}
.info-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}
.info-value {
  color: #2c3e50;
  font-weight: 500;
  text-align: right;
  max-width: 60%;
  word-wrap: break-word;
}
/* Notice Card Specific */
.notice-card {
  border-left: 4px solid #ffc107;
}
.notice-text {
  color: #495057;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.95rem;
}
.update-info {
  background: rgba(255, 193, 7, 0.1);
  padding: 10px 15px;
  border-radius: 8px;
  border-left: 3px solid #ffc107;
}
.update-info small {
  color: #856404;
  font-size: 0.85rem;
}
/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-action {
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.95rem;
  min-width: 200px;
}
.btn-action i {
  margin-right: 8px;
}
.btn-action.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.btn-action.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2, #667eea);
  color: white;
}
.btn-action.btn-outline-secondary {
  background: transparent;
  color: #6c757d;
  border: 2px solid #dee2e6;
}
.btn-action.btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
  transform: translateY(-2px);
}
/* ===============================================
   LOGIN PAGE STYLES
   =============================================== */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 50px;
}
.login-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    );
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
  pointer-events: none;
  z-index: 1;
}
/* Navigation Breadcrumb */
.login-nav {
  position: relative;
  z-index: 2;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.breadcrumb-modern {
  background: transparent;
  margin: 0;
  padding: 0;
}
.breadcrumb-modern .breadcrumb-item {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}
.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: rgba(255, 255, 255, 0.6);
  font-weight: bold;
  margin: 0 8px;
}
.breadcrumb-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}
.breadcrumb-link:hover {
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.breadcrumb-modern .breadcrumb-item.active {
  color: white;
  font-weight: 600;
}
/* Main Login Container */
.login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 80px); /* Ensure full height minus nav */
}
.login-container .row {
  margin: 0;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}
.login-container .col-12,
.login-container .col-sm-11,
.login-container .col-md-9,
.login-container .col-lg-7,
.login-container .col-xl-6,
.login-container .col-xxl-5 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
}
.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 40px;
  /* Nudge the login card slightly up to make the form appear higher on the page */
  margin-top: -12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 100%;
  max-width: 450px;
  margin: 0 auto; /* Center the card */
  animation: loginSlideUp 0.8s ease-out;
}
@keyframes loginSlideUp {
  from {
    opacity: 0;
    /* reduce the initial vertical offset so the card doesn't drop as far */
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Login Header */
.login-header {
  text-align: center;
  margin-bottom: 35px;
}
.logo-section {
  margin-bottom: 20px;
}
.login-logo {
  max-width: 120px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}
.login-logo:hover {
  transform: scale(1.05);
}
.app-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #667eea 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.fingerprint-icon {
  font-size: 2.5rem;
  color: #667eea;
  margin: 10px 0;
  opacity: 0.8;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}
.login-subtitle {
  color: #5a6c7d;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}
.login-subtitle em {
  color: #667eea;
  font-weight: 600;
  font-style: normal;
}
/* Form Styles */
.login-form-container {
  margin-top: 30px;
}
.form-group-modern {
  margin-bottom: 25px;
}
.form-label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.input-wrapper {
  position: relative;
}
.form-control-modern {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: 2px solid #e1e8ed;
  border-radius: 15px;
  font-size: 1rem;
  color: #2c3e50;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  outline: none;
}
.form-control-modern:focus {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}
.form-control-modern::placeholder {
  color: #95a5a6;
  font-weight: 400;
}
.input-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #95a5a6;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}
.form-control-modern:focus + .input-icon {
  color: #667eea;
}
.toggle-password {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #95a5a6;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  z-index: 10;
}
.toggle-password:hover {
  color: #667eea;
  transform: translateY(-50%) scale(1.1);
}
.input-wrapper:has(.password) .input-icon {
  right: 50px;
}
/* Login Button */
.login-actions {
  margin-top: 30px;
}
.btn-login {
  width: 100%;
  padding: 16px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 15px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}
.btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}
.btn-login:hover::before {
  left: 100%;
}
.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
.btn-login:active {
  transform: translateY(-1px);
}
.btn-text {
  transition: transform 0.3s ease;
}
.btn-icon {
  transition: transform 0.3s ease;
  font-size: 1rem;
}
.btn-login:hover .btn-text {
  transform: translateX(-5px);
}
.btn-login:hover .btn-icon {
  transform: translateX(5px);
}
/* Loading State */
.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.btn-login:disabled:hover {
  transform: none;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}
/* ===============================================
   LOGIN PAGE RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 991.98px) {
  .login-container {
    min-height: calc(100vh - 70px);
  }
  .login-card {
    padding: 35px;
    max-width: 400px;
  }
  .app-title {
    font-size: 1.6rem;
  }
  .login-logo {
    max-width: 100px;
  }
  .fingerprint-icon {
    font-size: 2.2rem;
  }
}
@media (max-width: 767.98px) {
  .login-container {
    padding: 15px 10px;
    min-height: calc(100vh - 60px);
    overflow-y: auto !important;
  }
  .login-page {
    overflow-y: auto !important;
  }
  .login-card {
    padding: 30px 25px;
    border-radius: 20px;
    margin: 0 5px;
  }
  .app-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }
  .login-logo {
    max-width: 80px;
  }
  .fingerprint-icon {
    font-size: 2rem;
    margin: 8px 0;
  }
  .login-subtitle {
    font-size: 0.9rem;
  }
  .form-control-modern {
    padding: 12px 45px 12px 18px;
    font-size: 0.95rem;
  }
  .btn-login {
    padding: 14px 25px;
    font-size: 1rem;
  }
}
@media (max-width: 575.98px) {
  .login-container {
    padding: 10px 5px;
    min-height: calc(100vh - 55px);
  }
  .login-card {
    padding: 25px 20px;
    border-radius: 18px;
  }
  .app-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  .login-logo {
    max-width: 70px;
  }
  .fingerprint-icon {
    font-size: 1.8rem;
    margin: 6px 0;
  }
  .login-subtitle {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  .form-group-modern {
    margin-bottom: 20px;
  }
  .form-label {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }
  .form-control-modern {
    padding: 12px 40px 12px 16px;
    font-size: 0.9rem;
    border-radius: 12px;
  }
  .input-icon,
  .toggle-password {
    font-size: 1rem;
    right: 15px;
  }
  .input-wrapper:has(.password) .input-icon {
    right: 45px;
  }
  .btn-login {
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: 12px;
  }
}
@media (max-width: 375px) {
  .login-container {
    padding: 10px 5px;
    min-height: calc(100vh - 50px);
  }
  .login-card {
    padding: 20px 15px;
    margin: 0;
  }
  .app-title {
    font-size: 1.1rem;
  }
  .login-logo {
    max-width: 60px;
  }
  .fingerprint-icon {
    font-size: 1.6rem;
  }
  .login-subtitle {
    font-size: 0.8rem;
  }
  .form-control-modern {
    padding: 10px 35px 10px 14px;
    font-size: 0.85rem;
  }
  .btn-login {
    padding: 10px 15px;
    font-size: 0.9rem;
    gap: 8px;
  }
}
/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
  .login-container {
    padding: 10px 15px;
    min-height: calc(100vh - 50px);
  }
  .login-card {
    padding: 25px 30px;
  }
  .login-header {
    margin-bottom: 25px;
  }
  .app-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }
  .fingerprint-icon {
    font-size: 1.8rem;
    margin: 5px 0;
  }
  .login-subtitle {
    font-size: 0.85rem;
  }
  .form-group-modern {
    margin-bottom: 18px;
  }
  .login-actions {
    margin-top: 20px;
  }
}

/* ===============================================
   ANIMATIONS & TRANSITIONS
   =============================================== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.module-home-form-card {
  animation: slideInLeft 0.6s ease-out;
}
.module-home-history-card {
  animation: slideInLeft 0.8s ease-out;
}
/* Hover effects for better interactivity */
.module-home-form-control::placeholder {
  color: rgba(44, 62, 80, 0.6);
}
/* Scrollbar styling untuk area yang bisa di-scroll */
.table-responsive::-webkit-scrollbar {
  width: 6px;
}
.table-responsive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
/* Loading states untuk interaktivitas */
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
/* Focus states untuk accessibility */
.glass-card:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}
.qr-code {
  width: 70px;
  height: 70px;
}

/* ===============================================
   PASSWORD REQUIREMENTS DESIGN
   =============================================== */
.password-requirements {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
}

.requirement-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.requirement-item:last-child {
  margin-bottom: 0;
}

.requirement-icon {
  margin-right: 8px;
  font-size: 0.75rem;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.requirement-text {
  color: #6c757d;
  transition: color 0.3s ease;
}

.requirement-item.valid .requirement-icon {
  color: #28a745 !important;
}

.requirement-item.valid .requirement-text {
  color: #28a745;
}

.requirement-item.valid .fa-times:before {
  content: "\f00c"; /* Change to checkmark */
}

/* Password Match Indicator */
.password-match-indicator {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 8px 12px;
}
