/* CSS Khusus Media Pembelajaran Interaktif NKPI SMKN 1 Mundu */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-navy: #0B192C;
  --primary-deep: #1E3E62;
  --sea-blue: #028090;
  --sea-teal: #00A896;
  --sea-mint: #02C39A;
  --safety-orange: #FF6B35;
  --golden-sand: #F77F00;
  --surface-light: #F8FAFC;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #F1F5F9;
  color: #1E293B;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Maritime wave pattern background */
.maritime-hero-bg {
  background: radial-gradient(circle at 20% 20%, rgba(2, 128, 144, 0.15), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.1), transparent 40%),
              linear-gradient(135deg, #0B192C 0%, #152942 50%, #0c2035 100%);
}

.ocean-gradient-card {
  background: linear-gradient(135deg, #0B192C 0%, #1E3E62 100%);
}

/* Glassmorphism effects */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-dark {
  background: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Active navigation badge */
.nav-link.active {
  background: #028090;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(2, 128, 144, 0.35);
}

.nav-link.active i {
  color: #FFFFFF !important;
}

/* Custom transitions */
.fade-in {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Certificate Styles */
.certificate-frame {
  background: #FFFFFF;
  border: 12px double #1E3E62;
  position: relative;
  box-shadow: 0 20px 40px -15px rgba(11, 25, 44, 0.25);
}

.certificate-inner-border {
  border: 2px solid #D97706;
}

.certificate-stamp {
  border: 3px dashed #B91C1C;
  transform: rotate(-12deg);
}

/* Simulator Baggage item states */
.bag-item {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.bag-item:hover {
  transform: translateY(-2px);
}

.bag-item.selected {
  border-color: #028090;
  background-color: #F0FDFA;
}

.bag-item.invalid-selected {
  border-color: #EF4444;
  background-color: #FEF2F2;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #E2E8F0;
}
::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}

/* Print Rules for Certificate */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  
  header, footer, nav, .no-print, button, .tab-navigation, #toast-container {
    display: none !important;
  }
  
  #page-hasil {
    display: block !important;
  }
  
  .certificate-print-area {
    display: block !important;
    width: 100% !important;
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 8px double #1E3E62 !important;
  }
  
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
