/* Custom Styles for Portal Digitalisasi SMPN 244 Jakarta */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-navy: #0f172a;
  --bg-canvas: #1e40af;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #1e40af;
  background-image: 
    radial-gradient(circle at 50% 25%, #2563eb 0%, #1e40af 60%, #1e3a8a 100%);
  background-attachment: fixed;
}

/* Glassmorphism Header & Card Styling */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.portal-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

.portal-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
}

.portal-card-icon {
  transition: transform 0.35s ease;
}

.portal-card:hover .portal-card-icon {
  transform: scale(1.15) rotate(-4deg);
}

/* App Link Item in Modal */
.app-item-card {
  transition: all 0.25s ease;
}

.app-item-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}

/* Modal Animation */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Custom Scrollbar for Modal */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Pulse Glow Effect */
@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-soft-pulse {
  animation: softPulse 3s infinite ease-in-out;
}

/* Mobile Touch & Responsive Optimizations */
@media (max-width: 640px) {
  .portal-card {
    padding: 1rem !important;
  }
  .modal-container {
    max-height: 90vh !important;
    border-radius: 1.5rem !important;
  }
  table {
    font-size: 11px !important;
  }
}

/* Responsive Table Wrapper */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media print {
  .no-print { display: none !important; }
}
