/* ============================================
   CUSTOM.MIN.CSS - STYLES FOR SIAKAD SAHID
   VERSION: 3.0 - ENHANCED & ORGANIZED
   ============================================ */

/* ================ TABLE OF CONTENTS ================ */
/*
  1. CSS VARIABLES & ROOT CUSTOM PROPERTIES
  2. RESET & GLOBAL BASE STYLES
  3. TYPOGRAPHY ENHANCEMENTS
  4. LAYOUT & CONTAINER SYSTEMS
  5. ANIMATIONS & KEYFRAMES
  6. FORM COMPONENTS
  7. BUTTONS & INTERACTIVE ELEMENTS
  8. CARD COMPONENTS
  9. NAVIGATION & MENUS
  10. TABLES & DATA DISPLAY
  11. SPECIAL COMPONENTS (WhatsApp, Loading, Hero)
  12. SIDE MENU MODERN STYLES
  13. UTILITIES & HELPER CLASSES
  14. RESPONSIVE DESIGN BREAKPOINTS
  15. PRINT & ACCESSIBILITY
*/

/* ================ 1. CSS VARIABLES & ROOT CUSTOM PROPERTIES ================ */
:root {
  /* Primary Color Palette */
  --primary-color: #4361ee;
  --secondary-color: #3a0ca3;
  --accent-color: #4cc9f0;
  --warning-color: #f59e0b;
  --warning-dark: #d97706;
  --light-bg: #f8f9fa;
  --dark-text: #212529;
  --border-radius: 12px;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  
  /* Bootstrap Compatibility Colors */
  --bs-primary: #0d6efd;
  --bs-success: #198754;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  
  /* Z-INDEX LAYERS */
  --z-whatsapp: 1000;
  --z-loading: 9999;
  --z-dropdown: 100;
  --z-fixed: 1030;
  --z-sticky: 1020;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1070;
  --z-tooltip: 1080;
  
  /* NEW: Enhanced Modern Color Palette */
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-info: #3b82f6;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Enhanced Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Enhanced Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Responsive Breakpoints */
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1400px;
}

/* ================ 2. RESET & GLOBAL BASE STYLES ================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  position: relative;
  background-color: #f8f9fa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* NEW: Safe Area Insets for Notch Phones */
@supports (padding: max(0px)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* NEW: Improved Image Responsiveness */
.img-fluid {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.img-rounded {
  border-radius: var(--border-radius);
}

/* ================ 3. TYPOGRAPHY ENHANCEMENTS ================ */
.text-shadow {
  color: #fff;
  text-shadow:
    0 0 8px rgba(255,255,255,0.8),
    0 0 24px rgba(255,255,255,0.6);
  position: relative;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* NEW: Responsive Typography with clamp() */
.responsive-heading-1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
}

.responsive-heading-2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  font-weight: 600;
}

.responsive-heading-3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.3;
  font-weight: 600;
}

.responsive-text {
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.6;
}

/* NEW: Text Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================ 4. LAYOUT & CONTAINER SYSTEMS ================ */
.overlap-prevention {
  position: relative;
  z-index: 1;
}

.stacking-context {
  isolation: isolate;
  position: relative;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.stack-item {
  margin-bottom: 1rem;
}

.stack-item:last-child {
  margin-bottom: 0;
}

/* NEW: Modern Container System */
.container-responsive {
  width: 100%;
  padding-right: var(--space-md);
  padding-left: var(--space-md);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container-responsive {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container-responsive {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container-responsive {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container-responsive {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container-responsive {
    max-width: 1320px;
  }
}

/* NEW: Grid System Enhancement */
.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-lg);
}

.grid-auto-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: var(--space-md);
}

/* ================ 5. ANIMATIONS & KEYFRAMES ================ */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

@keyframes pulseFocus {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* NEW: Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, 
    var(--color-gray-100) 25%, 
    var(--color-gray-200) 50%, 
    var(--color-gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ================ 6. FORM COMPONENTS ================ */

/* FORM REGISTRATION SECTION - ALL ORIGINAL CODE PRESERVED */
.step-progress-container {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
}

.step-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 1rem;
  z-index: 1;
  flex-wrap: wrap;
  gap: 1rem;
}

.step-progress:before {
  content: '';
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gray-200);
  transform: translateY(-50%);
  z-index: 1;
}

.step-progress-line {
  position: absolute;
  top: 40%;
  left: 0;
  height: 3px;
  background: var(--primary-color);
  transform: translateY(-50%);
  z-index: 2;
  transition: var(--transition);
  width: 0%;
}

.step-progress-line.active {
  background: var(--primary-color);
}

.step-item {
  position: relative;
  z-index: 3;
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.step-item.active .step-icon {
  background: var(--primary-color);
  color: white;
  transform: scale(1.0);
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  transition: all 0.3s ease;
  border: 3px solid white;
  box-shadow: var(--card-shadow);
}

.step-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-600);
  word-break: keep-all;
  white-space: nowrap;
}

.step-item.active .step-title {
  color: var(--primary-color);
}

.form-section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-800);
  position: relative;
}

/* Form Label with Tooltip - ALL ORIGINAL */
.form-label {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-gray-700);
  flex-wrap: wrap;
  gap: 0.25rem;
}

.form-label .required-asterisk {
  color: var(--color-danger);
  margin-left: 2px;
}

/* Tooltip Styles */
.form-tooltip {
  margin-left: 0.25rem;
  cursor: help;
  color: var(--color-gray-500);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.form-tooltip:hover {
  color: var(--primary-color);
}

.form-tooltip .bi {
  font-size: 0.9rem;
}

/* Custom Tooltip Popup */
.tooltip-custom {
  position: absolute;
  z-index: var(--z-tooltip);
  max-width: 300px;
  background: var(--color-gray-900);
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.2s ease;
}

.tooltip-custom::before {
  /* content: ''; */
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: var(--color-gray-900);
  transform: rotate(45deg);
}

/* Field Icon Styles */
.field-icon {
  margin-right: 0.5rem;
  color: var(--color-gray-600);
  flex-shrink: 0;
}

/* Label wrapper for proper alignment */
.label-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.label-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

/* FORM CONTROLS - ALL ORIGINAL STYLES PRESERVED */
.form-control,
.form-select,
textarea.form-control {
  border: 2px solid var(--color-gray-300);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark-text);
  background-color: #fff;
  background-clip: padding-box;
  transition: var(--transition);
  width: 100%;
  position: relative;
  display: block;
  appearance: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-height: 48px;
  padding: 0.75rem 1rem;
}

/* NEW: Enhanced Form States */
.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: var(--primary-color);
  background-color: #fff;
  box-shadow: 
    0 0 0 0.3rem rgba(67, 97, 238, 0.15),
    0 4px 12px rgba(67, 97, 238, 0.1);
  outline: 0;
  transform: translateY(-2px);
  animation: pulseFocus 0.3s ease;
}

.form-control:hover:not(:disabled):not([readonly]),
.form-select:hover:not(:disabled):not([readonly]),
textarea.form-control:hover:not(:disabled):not([readonly]) {
  border-color: var(--color-gray-400);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* NEW: Modern Form Styles */
.form-floating {
  position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
  padding: 1rem 0.75rem;
}

.form-floating > label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* NEW: Form Validation Enhancement */
.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--color-success);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--color-danger);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
}

/* Real-time validation feedback */
.form-control:valid {
  border-color: var(--color-success);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control:invalid {
  border-color: var(--color-danger);
}

.form-control:invalid:focus {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.25);
}

/* FORM COMPONENTS - ALL ORIGINAL */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
  display: block;
  font-size: 0.95rem;
}

.form-label.required::after {
  content: " *";
  color: var(--bs-danger);
  margin-left: 2px;
}

.required-asterisk {
  color: var(--bs-danger);
  display: inline-block;
  margin-left: 2px;
}

/* NEW: Form Group with Icon */
.form-group-with-icon {
  position: relative;
}

.form-group-with-icon .form-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-500);
  z-index: 2;
}

.form-group-with-icon .form-control {
  padding-left: 3rem;
}

/* Form Icon Prefix */
.form-icon-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-500);
  z-index: 5;
}

/* INVALID FEEDBACK - ALL ORIGINAL */
.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--bs-danger);
  padding: 0.5rem 0.75rem;
  background-color: rgba(220, 53, 69, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--bs-danger);
  animation: slideIn 0.3s ease;
}

.is-invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
  display: block;
}

.valid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--bs-success);
  padding: 0.5rem 0.75rem;
  background-color: rgba(25, 135, 84, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--bs-success);
}

.is-valid ~ .valid-feedback,
.was-validated .form-control:valid ~ .valid-feedback,
.was-validated .form-select:valid ~ .valid-feedback {
  display: block;
}

.form-text {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  color: #6c757d;
  margin-top: 0.5rem;
}

/* NEW: Modern Feedback Styles */
.feedback-hint {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  margin-top: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.feedback-hint.success {
  color: var(--color-success);
}

.feedback-hint.error {
  color: var(--color-danger);
}

/* INPUT GROUP - ALL ORIGINAL */
.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  /* width: 100%; */
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.input-group:focus-within {
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
  transform: translateY(-1px);
  animation: pulseFocus 0.3s ease;
}

.input-group .form-control,
.input-group .form-select {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  margin-bottom: 0;
  border-radius: 10px;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  text-align: center;
  white-space: nowrap;
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  transition: var(--transition);
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  min-height: 48px;
}

.input-group:focus-within .input-group-text {
  border-color: var(--primary-color);
  background: linear-gradient(to right, rgba(67, 97, 238, 0.1), rgba(67, 97, 238, 0.05));
  color: var(--primary-color);
  font-weight: 500;
}

/* NEW: Input Group Variants */
.input-group-merge .form-control {
  border-right: 0;
}

.input-group-merge .input-group-text {
  border-left: 0;
}

.input-group-rounded .form-control,
.input-group-rounded .input-group-text {
  border-radius: 50px;
}

/* ================ 7. BUTTONS & INTERACTIVE ELEMENTS ================ */
.btn {
  border-radius: 10px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 1rem;
  line-height: 1.5;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  gap: var(--space-sm);
  /* padding: 0.75rem 1.5rem; */
  /* min-height: 48px; */
}

.btn:hover {
  transform: translateY(-2px);
  z-index: 2;
}

.btn:active {
  animation: buttonPulse 0.3s ease;
}

/* Button hover effects for submit */
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(67, 97, 238, 0.3);
}

/* NEW: Button Variants Enhancement */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-color), #2f0a8f);
  box-shadow: 0 6px 12px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
  box-shadow: 0 4px 8px rgba(58, 12, 163, 0.2);
}

.btn-secondary:hover {
  background: #2f0a8f;
  opacity: 0.95;
  box-shadow: 0 6px 12px rgba(58, 12, 163, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #20c997, #0ca678);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 8px rgba(32, 201, 151, 0.2);
}

.btn-success:hover {
  background: linear-gradient(135deg, #1ab184, #0b8c66);
  box-shadow: 0 6px 12px rgba(32, 201, 151, 0.3);
}

.btn-warning {
  background-color: var(--warning-color);
  border-color: var(--warning-color);
  color: white;
}

.btn-warning:hover {
  background-color: var(--warning-dark);
  border-color: var(--warning-dark);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.2);
}

.btn-outline-primary {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 6px 12px rgba(67, 97, 238, 0.2);
}

.btn-outline-primary.active {
  border: 1px solid var(--primary-color);
  color: white !important;
  background-color: var(--primary-color);
}

.btn-outline-secondary {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
  box-shadow: 0 6px 12px rgba(58, 12, 163, 0.2);
}

/* NEW: Modern Button Styles */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-gradient::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 ease;
}

.btn-gradient:hover::before {
  left: 100%;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-group-responsive {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.btn-group-responsive .btn {
  flex: 1;
  min-width: 120px;
}

/* NEW: Floating Action Button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-whatsapp);
  transition: var(--transition);
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

/* ================ 8. CARD COMPONENTS ================ */
.card {
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow) !important;
}

.card-header {
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  position: relative;
  z-index: 1;
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem;
}

.card-body {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

/* NEW: Modern Card Variants */
.card-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
}

.card-gradient .card-title,
.card-gradient .card-text {
  color: white;
}

.card-hover-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-hover-3d:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.card-border-animation {
  position: relative;
  overflow: hidden;
}

.card-border-animation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.card-border-animation:hover::before {
  transform: translateX(0);
}

/* Card Grid System */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* ================= 9. NAVIGATION & MENUS ================= */
.navbar {
  position: relative;
  /* z-index: var(--z-sticky); */
  z-index: 9999;
  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  ) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* link default */
.navbar-nav .nav-link {
  position: relative;
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85); /* semi-putih */
  transition: var(--transition);
  text-decoration: none;
}

/* hover link */
.navbar-nav .nav-link:hover {
  color: #ffffff; /* putih saat hover */
}

/* active link teks */
.navbar-expand-lg .navbar-nav .nav-link.active {
  color: #ffffff !important; /* override primary */
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.2) !important; /* putih tipis */
  border-radius: 10px;
}

/* underline active */
.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: #ffffff !important;
  border-radius: 3px 3px 0 0;
  z-index: 1;
}

/* NEW: Modern Navigation */
.navbar-glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav-link-icon {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-notification {
  position: relative;
}

.nav-notification::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background: var(--color-danger);
  border-radius: 50%;
  border: 2px solid white;
}

/* ================ 10. TABLES & DATA DISPLAY ================ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  isolation: isolate;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.compact-table {
  font-size: 0.875rem;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  width: 100%;
  min-width: 600px;
  position: relative;
  margin-bottom: 0;
}

.compact-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.compact-table thead th {
  background: linear-gradient(135deg, var(--light-bg), #f1f3f5);
  font-weight: 600;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  text-transform: uppercase;
  font-size: 0.75rem;
  white-space: nowrap;
  position: relative;
  color: #495057;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.compact-table td {
  padding: 0.875rem 1rem;
  border-top: 1px solid #f1f3f5;
  vertical-align: middle;
  position: relative;
  color: #212529;
}

.compact-table tbody tr {
  transition: background-color .15s ease;
  position: relative;
}

.compact-table tbody tr:hover {
  background-color: rgba(67, 97, 238, 0.04);
  z-index: 1;
}

.compact-table tbody tr:nth-child(even) {
  background-color: #fafbfc;
}

/* NEW: Modern Table Styles */
.table-hover-zoom tbody tr {
  transition: all 0.3s ease;
}

.table-hover-zoom tbody tr:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.table-striped-custom tbody tr:nth-child(odd) {
  background: linear-gradient(90deg, rgba(67, 97, 238, 0.02), transparent);
}

.table-border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--primary-color), var(--accent-color)) border-box;
}

/* ================ 11. SPECIAL COMPONENTS ================ */

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--z-whatsapp);
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 50%;
  background-color: #25D366;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  border: none;
  cursor: pointer;
  width: 56px;
  height: 56px;
  position: relative;
  overflow: hidden;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover::before {
  left: 100%;
}

/* NEW: WhatsApp Notification Badge */
.whatsapp-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: var(--color-danger);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  animation: pulse 2s infinite;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loading);
  backdrop-filter: blur(4px);
}

.loading-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.loading-content {
  text-align: center;
  max-width: 300px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
}

.spinner-border {
  vertical-align: middle;
  border-width: 0.15em;
}

/* NEW: Modern Loading Styles */
.loading-dots {
  display: flex;
  gap: 4px;
}

.loading-dots div {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots div:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots div:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: var(--color-gray-200);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loading-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  animation: loadingProgress 1.5s infinite ease-in-out;
}

@keyframes loadingProgress {
  0% { left: -30%; }
  100% { left: 100%; }
}

/* Toast container */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 3rem 0;
}

.hero-background {
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-overlay {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

/* NEW: Modern Hero Styles */
.hero-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.hero-parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ================ 12. SIDE MENU MODERN STYLES ================ */

/* Side Menu Container */
.side-menu-modern {
  position: relative;
  z-index: var(--z-sticky);
}

/* Profile Card Styles */
.profile-card .card {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-card .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow) !important;
}

.photo-container {
  position: relative;
  transition: all 0.3s ease;
}

.photo-container:hover {
  transform: scale(1.05);
}

.photo-container img {
  transition: all 0.3s ease;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-photo .btn-sm {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  bottom: 0;
  right: calc(50% - 55px);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.profile-photo .btn-sm:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
}

.student-info h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: var(--color-gray-800);
}

.student-info .badge {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

/* Progress Section */
.progress-section .progress {
  background-color: var(--color-gray-200);
  border-radius: 10px;
  overflow: hidden;
  height: 8px;
}

.progress-section .progress-bar {
  background: linear-gradient(90deg, var(--color-success), #0ca678);
  transition: width 1s ease-in-out;
  border-radius: 10px;
}

.progress-section .progress-bar-striped {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
}

/* Menu Navigation Card */
.menu-navigation .card {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.menu-navigation .card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-bottom: none;
  padding: 1rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.menu-navigation .card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

.menu-navigation .card-header h6 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  position: relative;
  z-index: 1;
}

/* Menu Items */
.menu-navigation .list-group-item {
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--color-gray-100);
  background-color: white;
}

.menu-navigation .list-group-item:last-child {
  border-bottom: none;
}

/* ACTIVE MENU STATE */
.menu-navigation .list-group-item.active {
  background: linear-gradient(90deg, 
    rgba(67, 97, 238, 0.08) 0%, 
    rgba(67, 97, 238, 0.04) 100%);
  border-left-color: var(--primary-color) !important;
  border-left-width: 4px;
  position: relative;
}

.menu-navigation .list-group-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(67, 97, 238, 0.1) 0%, 
    transparent 100%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-navigation .list-group-item.active:hover::before {
  opacity: 1;
}

.menu-navigation .list-group-item.active a {
  position: relative;
  z-index: 1;
}

.menu-navigation .list-group-item.active .menu-icon .number-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: white !important;
  border: 2px solid white !important;
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}

.menu-navigation .list-group-item.active .menu-icon .bi {
  color: var(--primary-color) !important;
  filter: drop-shadow(0 2px 4px rgba(67, 97, 238, 0.2));
}

.menu-navigation .list-group-item.active .flex-grow-1 span {
  color: var(--primary-color) !important;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(67, 97, 238, 0.1);
}

.menu-navigation .list-group-item.active .active-menu-indicator {
  color: var(--primary-color);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(67, 97, 238, 0.2));
}

/* Hover State */
.menu-navigation .list-group-item:hover:not(.disabled-menu-item):not(.active) {
  background-color: rgba(67, 97, 238, 0.03);
  border-left-color: rgba(67, 97, 238, 0.3);
  transform: translateX(3px);
}

.menu-navigation .list-group-item:hover:not(.disabled-menu-item):not(.active) a {
  color: var(--color-gray-800) !important;
}

.menu-navigation .list-group-item:hover:not(.disabled-menu-item):not(.active) .number-badge:not(.bg-primary) {
  background-color: rgba(67, 97, 238, 0.1) !important;
  color: var(--primary-color) !important;
  border-color: rgba(67, 97, 238, 0.3) !important;
  transform: scale(1.05);
}

/* Number Badge */
.number-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.number-badge:not(.bg-primary):not(.disabled-badge) {
  background-color: var(--color-gray-100);
  color: var(--color-gray-700);
  border: 2px solid var(--color-gray-300);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Menu Icons */
.menu-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.menu-icon .bi {
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

/* Menu Text */
.menu-navigation .list-group-item .flex-grow-1 span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray-700);
  transition: all 0.3s ease;
}

.menu-navigation .list-group-item .flex-grow-1 small {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-gray-500);
}

/* Badge Styles */
.menu-navigation .badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  animation: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge.bg-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: white !important;
  animation: pulse 2s infinite;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: white !important;
  animation: pulse 1.5s infinite;
}

.badge.bg-success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: white !important;
}

/* Disabled States */
.disabled-menu-item {
  background-color: var(--color-gray-50) !important;
  opacity: 0.6;
}

.disabled-menu-item a {
  cursor: not-allowed !important;
}

.disabled-link {
  pointer-events: none;
}

.disabled-badge {
  background-color: var(--color-gray-200) !important;
  color: var(--color-gray-500) !important;
  border-color: var(--color-gray-300) !important;
  box-shadow: none !important;
}

/* Active Menu Indicator */
.active-menu-indicator {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-400);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.menu-navigation .list-group-item.active .active-menu-indicator {
  color: var(--primary-color);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* Quick Stats */
.quick-stats .card {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.quick-stats .card-body {
  padding: 1.25rem;
}

.quick-stats h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.quick-stats .stat-item {
  padding: 0.5rem;
}

.quick-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quick-stats .stat-label {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 500;
}

.quick-stats .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.quick-stats .badge.bg-white {
  background-color: white !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animation Keyframes for Side Menu */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-bar-animated {
  animation: progress-animation 2s linear infinite;
}

@keyframes progress-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ================ 13. UTILITIES & HELPER CLASSES ================ */

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Shadow Utilities */
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important; }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important; }
.shadow-lg { box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important; }
.shadow-xl { box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important; }

/* Border Utilities */
.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--primary-color), var(--accent-color)) border-box;
}

/* Aspect Ratio */
.aspect-ratio-16-9 {
  aspect-ratio: 16/9;
}

.aspect-ratio-4-3 {
  aspect-ratio: 4/3;
}

.aspect-ratio-1-1 {
  aspect-ratio: 1/1;
}

/* Fluid Typography System */
.fluid-type {
  font-size: clamp(var(--text-base), 4vw, var(--text-lg));
}

.fluid-heading {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
}

/* Responsive Spacing */
.space-responsive {
  padding: clamp(1rem, 5vw, 2rem);
  margin: clamp(0.5rem, 3vw, 1.5rem);
}

/* Will-change for animations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Content Visibility */
.content-visibility-auto {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* ================ 14. RESPONSIVE DESIGN BREAKPOINTS ================ */

/* NEW: Container Queries Support */
@supports (container-type: inline-size) {
  .card-container {
    container-type: inline-size;
  }
  
  @container (max-width: 400px) {
    .card-responsive {
      padding: 1rem;
    }
    
    .card-responsive .card-title {
      font-size: 1.1rem;
    }
  }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .card:hover,
  .nav-link:hover {
    transform: none !important;
  }
  
  .touch-target {
    min-height: 44px;
    min-width: 44px;
  }
  
  .form-control,
  .form-select {
    font-size: 16px !important; /* Prevent iOS zoom */
  }
}

/* NEW: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Extra Small Devices (xs: 0px - 575px) */
@media (max-width: 575.98px) {
  /* Ultra-responsive typography */
  .responsive-heading-1 {
    font-size: clamp(1.5rem, 6vw, 1.75rem);
  }
  
  .responsive-heading-2 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }
  
  /* Mobile-optimized containers */
  .container-responsive {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Stack all columns */
  .row > [class*="col-"] {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  /* Mobile navigation */
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.05) !important; /* putih tipis */
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
    padding: 1rem;
    box-shadow: var(--card-shadow);
  }
  
  /* Mobile tables */
  .table-card-view {
    display: block;
  }
  
  .table-card-view tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
  }
  
  .table-card-view td {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-gray-100);
  }
  
  .table-card-view td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-gray-600);
    margin-right: 1rem;
  }
  
  /* Mobile forms */
  .form-buttons {
    flex-direction: column;
  }
  
  .form-buttons .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Mobile cards */
  .card-mobile {
    border-radius: var(--border-radius);
    margin: 0.5rem;
  }
  
  .card-mobile .card-body {
    padding: 1rem;
  }
  
  /* WhatsApp button positioning */
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }
  
  .fab {
    bottom: 90px;
    right: 15px;
  }
  
  /* Step Progress Mobile */
  .step-progress {
    flex-wrap: nowrap;
    /* overflow-x: auto; */
    padding-bottom: 0.5rem;
    justify-content: center;
    gap: 1rem;
  }
  
  .step-item {
    flex: 0 0 auto;
    min-width: 70px;
  }
  
  .step-icon {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .step-title {
    font-size: 0.7rem;
  }
  
  .form-section-title {
    font-size: var(--text-base);
    margin-bottom: 1rem;
  }
  
  .tooltip-custom {
    max-width: 250px;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  
  .form-tooltip {
    margin-left: 0.25rem;
  }
  
  .form-tooltip .bi {
    font-size: 0.8rem;
  }
  
  /* Label wrapper mobile */
  .label-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .label-content {
    width: 100%;
  }
  
  /* Form controls mobile */
  .form-control,
  .form-select {
    min-height: 44px;
    font-size: 16px;
  }
  
  .btn {
    /* min-height: 44px; */
    padding: 0.5rem 1rem;
  }
  
  /* Side Menu Mobile Responsive */
  .side-menu-modern {
    margin-bottom: 1rem;
  }
  
  .profile-card .card-body {
    padding: 1.25rem;
  }
  
  .photo-container {
    width: 70px !important;
    height: 70px !important;
  }
  
  .student-info h5 {
    font-size: 1rem;
  }
  
  .menu-navigation .list-group-item {
    padding: 0.75rem 1rem;
  }
  
  .menu-navigation .card-header {
    padding: 0.875rem 1rem;
  }
  
  .number-badge {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }
  
  .menu-icon .bi {
    font-size: 1rem;
  }
  
  .menu-navigation .list-group-item .flex-grow-1 span {
    font-size: 0.85rem;
  }
  
  .quick-stats .stat-value {
    font-size: 1.3rem;
  }
  
  .quick-stats .card-body {
    padding: 1rem;
  }
  
  .menu-navigation .list-group-item.active {
    border-left-width: 3px;
  }
}

/* Small Devices (sm: 576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  }
  
  .btn-group-responsive .btn {
    min-width: 100px;
  }
  
  .step-progress {
    padding: 0 0.5rem;
  }
  
  .step-icon {
    width: 45px;
    height: 45px;
  }
  
  .step-title {
    font-size: 0.8rem;
  }
  
  .form-section-title {
    font-size: 1.1rem;
  }
  
  /* Side Menu Small Devices */
  .side-menu-modern {
    padding: 0 0.5rem;
  }
}

/* Medium Devices (md: 768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  }
  
  .step-progress {
    padding: 0 0.75rem;
  }
  
  .step-icon {
    width: 50px;
    height: 50px;
  }
  
  .step-title {
    font-size: 0.85rem;
  }
  
  /* Side Menu Medium */
  .menu-navigation .list-group {
    max-height: 400px;
  }
}

/* Large Devices (lg: 992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  }
}

/* Extra Large Devices (xl: 1200px and up) */
@media (min-width: 1200px) {
  .grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  }
}

/* Side Menu Responsive Specific */
@media (max-width: 576px) {
  .side-menu-modern {
    padding: 0 0.25rem;
  }
  
  .profile-card .card-body {
    padding: 1rem;
  }
  
  .photo-container {
    width: 60px !important;
    height: 60px !important;
  }
  
  .profile-photo .btn-sm {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.6rem;
    border-width: 2px;
  }
  
  .menu-navigation .list-group-item {
    padding: 0.625rem 0.75rem;
  }
  
  .quick-stats .row {
    gap: 0.25rem;
  }
  
  .quick-stats .col-4 {
    flex: 0 0 calc(33.333% - 0.167rem);
    max-width: calc(33.333% - 0.167rem);
  }
  
  .menu-navigation .badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }
}

/* CUSTOM SCROLLBAR for Modern Browsers */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--color-gray-100);
    border-radius: 5px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 5px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-400);
  }
}

/* ================ 15. PRINT & ACCESSIBILITY ================ */

@media print {
  .no-print,
  .whatsapp-float,
  .fab,
  .navbar,
  .btn:not(.btn-print) {
    display: none !important;
  }
  
  .card {
    break-inside: avoid;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
  
  .table-responsive {
    overflow: visible !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  /* Hide side menu when printing */
  .side-menu-modern {
    display: none !important;
  }
}

/* ACCESSIBILITY ENHANCEMENTS */

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to Main Content */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  z-index: var(--z-modal);
}

.skip-to-content:focus {
  top: 0;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Accessibility for Side Menu */
.menu-navigation a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

.menu-navigation .list-group-item.active a:focus {
  outline-color: white;
  outline-offset: 3px;
}

.touch-target:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Side Menu Scrollbar */
.menu-navigation .list-group {
  max-height: 450px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .menu-navigation .list-group {
    max-height: 350px;
  }
}

.menu-navigation .list-group::-webkit-scrollbar {
  width: 5px;
}

.menu-navigation .list-group::-webkit-scrollbar-track {
  background: var(--color-gray-100);
  border-radius: 3px;
}

.menu-navigation .list-group::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 3px;
}

.menu-navigation .list-group::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}

/* Menu Divider */
.list-group-item.border-top {
  border-top: 1px solid var(--color-gray-200) !important;
  margin-top: 0.5rem;
  padding-top: 1rem;
  background-color: var(--color-gray-50);
}

/* Enhanced Active State Effects */
.menu-navigation .list-group-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, 
    var(--primary-color), 
    rgba(67, 97, 238, 0.5));
  border-radius: 3px 0 0 3px;
  opacity: 0.8;
}

/* Loading State */
.profile-photo img.loading {
  opacity: 0.5;
  filter: blur(2px);
  animation: pulse 2s infinite;
}

/* Menu Counter (optional) */
.menu-counter {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  background-color: var(--color-danger);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* ================ FINAL RESPONSIVE FIXES ================ */

/* Prevent horizontal scroll on mobile */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Fix for iOS 100vh issue */
.min-vh-100 {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* Improve tap targets on mobile */
@media (max-width: 768px) {
  /* .btn, */
  .nav-link,
  .form-check-label {
    min-height: 44px;
    min-width: 44px;
  }
  
  .form-control,
  .form-select {
    font-size: 16px !important;
  }
}

/* Optimize images for mobile */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
  
  .hero-section {
    min-height: 60vh;
    padding: 2rem 0;
  }
}

/* END OF CSS ENHANCEMENTS - ALL ORIGINAL CODE PRESERVED */