/* Custom Styles for FMIPA UI SLCM Portal */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --primary: #0f172a;
  --primary-container: #0f172a;
  --secondary: #735c00;
  --secondary-container: #fed01b;
  --surface: #fcf8fa;
  --surface-container: #f0edef;
  --surface-container-low: #f6f3f5;
  --surface-container-lowest: #ffffff;
  --on-surface: #1b1b1d;
  --on-surface-variant: #45464d;
  --muted-slate: #64748B;
  --success-emerald: #10B981;
}

* {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--surface);
  color: var(--on-surface);
}

h1, h2, h3, h4, h5, h6, .font-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.hero-gradient {
  background: linear-gradient(135deg, rgb(8, 61, 98) 0%, rgb(25, 46, 67) 100%);
}

.procedure-card {
  background: #ffffff;
  border-left: 4px solid var(--secondary-container);
  transition: all 0.3s ease;
}

.procedure-card:hover {
  transform: translateY(-2px);
  border-left-color: var(--secondary);
}

/* Custom Global Modern Scrollbar (Register Style) */
html {
  scroll-behavior: smooth;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.6);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #083d62;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

/* Platform Slider styling */
.platform-carousel {
  scroll-behavior: smooth;
}

/* Smooth transitions */
.transition-all-300 {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Skeleton Loading Shimmer Animation */
.skeleton {
  background: linear-gradient(
    90deg,
    #e2e8f0 25%,
    #f1f5f9 37%,
    #e2e8f0 63%
  );
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-dark {
  background: linear-gradient(
    90deg,
    #1e293b 25%,
    #334155 37%,
    #1e293b 63%
  );
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* Page Overlay Skeleton */
#page-skeleton-overlay {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}
#page-skeleton-overlay.hidden-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Progressive Scroll Skeleton Box Swap System */
.skeleton-card {
  position: relative;
}

.skeleton-box-layer {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.skeleton-box-layer.skeleton-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 4-Column Platform Card Slider Width System */
.platform-card-item {
  flex: 0 0 calc(25% - 18px);
  width: calc(25% - 18px);
  max-width: calc(25% - 18px);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .platform-card-item {
    flex: 0 0 calc(33.333% - 16px);
    width: calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
  }
}

@media (max-width: 768px) {
  .platform-card-item {
    flex: 0 0 calc(50% - 12px);
    width: calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

@media (max-width: 640px) {
  .platform-card-item {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}
