


/* ========= PAGE ========= */
body {
    /* Vibrant, soft mesh gradient instead of flat gray */
    background-color: #f4f7fb;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253, 100%, 75%, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(190, 100%, 75%, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    margin: 0;
}

/* ========= LAYOUT ========= */
.container {
    max-width: 1140px; /* Slightly wider for a modern feel */
    width: 100%;
    margin-inline: auto;
    padding: calc(var(--padding-top-header) + 2rem) 1.5rem 3rem;
    box-sizing: border-box;
}

/* ========= HEADER ========= */
.header {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    box-shadow: 0 8px 24px -20px rgba(15, 23, 42, 0.4);
}

.header h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.3em, 2vw, 1.75em);
    line-height: 1.3;
    font-weight: 800;
    color: rgb(var(--text-color-black));
    letter-spacing: -0.01em;
}

.header p {
    margin: 0;
    color: rgb(var(--text-muted));
    font-size: 1.1em;
}

/* ========= SEARCH ========= */
.search-wrap {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(var(--primary-color));
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Ensures it stays above the input background */
}

.search-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none; /* Crucial so line/circle elements don't collapse */
}

#term-search {
    width: 100%;
    height: 54px;
    box-sizing: border-box;
    padding: 0 1.5rem 0 3.2rem;
    border-radius: 999px; /* Pill shape is friendlier, less corporate */
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: rgb(var(--text-color-black));
    font-size: 1rem;
    outline: none;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
}

#term-search::placeholder {
  color: #94a3b8;
}

#term-search:focus {
  border-color: rgb(var(--primary-color));
  background: #fff;
  box-shadow: 0 10px 30px -5px rgba(139, 92, 246, 0.2);
}

/* ========= GRID ========= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ========= CARD ========= */
.card {
  --app-rgb: 99, 102, 241; /* Default Indigo */
  --text-on-hover: #ffffff; /* Variable to ensure contrast */
  
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.5rem;
  border-radius: 20px; /* Rounder, friendlier corners */
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: none; /* Removed gray border */
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  
  /* Bouncy transition */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

/* Top accent strip */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: rgb(var(--app-rgb));
  transition: opacity 0.3s ease;
}

/* Subtle soft spot */
.card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  top: -50px;
  right: -50px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--app-rgb), 0.08), transparent 70%);
  pointer-events: none;
  transition: background 0.4s ease;
}

/* App-specific vars */
.card.sipintar { --app-rgb: var(--sipintar-app-color-rgb, 16, 185, 129); }
.card.sigma    { --app-rgb: var(--sigma-app-color-rgb, 245, 158, 11); }
.card.sipurwa  { --app-rgb: var(--sipurwa-app-color-rgb, 59, 130, 246); }
.card.simantav { --app-rgb: var(--simantav-app-color-rgb, 236, 72, 153); }

.card.log_karyawan { --app-rgb: var(--sipintar-app-color-rgb, 59, 130, 246); }
.card.stokopname { --app-rgb: var(--sipintar-app-color-rgb, 16, 185, 129); }

/* Card Content */
.icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  background: rgba(var(--app-rgb), 0.12);
  color: rgb(var(--app-rgb));
  transition: all 0.3s ease;
}

.icon-wrapper svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Added transition to text so they fade smoothly to white on hover */
.card h2, .card p, .card .arrow-icon {
  transition: color 0.3s ease;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: rgb(var(--text-color-black));
  letter-spacing: -0.01em;
  text-transform: capitalize;
}

.card p {
  margin: 0 0 1rem;
  color: rgb(var(--text-muted));
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Chips */
.card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 1rem;
}

.card .chip {
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.3rem 0.6rem;
  border-radius: 8px; /* Slightly squarer chips for contrast against round card */
  background: rgba(var(--app-rgb), 0.1);
  color: rgb(var(--app-rgb));
  transition: all 0.3s ease;
}

/* Arrow */
.arrow-icon {
  margin-top: auto;
  align-self: flex-end;
  color: #94a3b8;
}

.arrow-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========= HOVER / PRONOUNCED EFFECT ========= */
.card:hover,
.card:focus-visible {
  transform: translateY(-8px);
  background: rgb(var(--app-rgb)); /* The whole card changes color */
  box-shadow: 0 20px 40px -10px rgba(var(--app-rgb), 0.45);
  outline: none;
}

/* Fade out the top accent strip on hover */
.card:hover::before {
  opacity: 0; 
}

/* Make the radial soft spot pop with white light */
.card:hover::after {
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
}

/* Override text colors to ensure contrast */
.card:hover h2,
.card:hover p,
.card:hover .arrow-icon,
.card:focus-visible h2,
.card:focus-visible p,
.card:focus-visible .arrow-icon {
  color: var(--text-on-hover);
}

/* Make the icon stand out playfully on hover */
.card:hover .icon-wrapper,
.card:focus-visible .icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-on-hover);
  transform: scale(1.1) rotate(-5deg); /* Playful tilt */
}

/* Invert chips to white */
.card:hover .chip,
.card:focus-visible .chip {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-on-hover);
}

.card:hover .arrow-icon,
.card:focus-visible .arrow-icon {
  transform: translateX(5px);
}

/* search helper */
.card.is-hidden {
  display: none !important;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
    .container {
        padding: calc(var(--padding-top-header) + 2rem) 2rem 3rem;
    }
    .header {
        font-size: 1.4em;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .card {
        min-height: 200px;
    }
}

/* ========= A11Y ========= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}



/* UNDER DEVELOPMENT */

:root {
	--padding-top-header: 0px;
}

.under-dev-outer-container {
	display: flex;
	justify-content: center;
	align-items: center;

	padding: 2em;
}

.under-dev-container {
	max-width: 600px;
	padding: 3rem 2rem;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.icon {
	width: 80px;
	height: 80px;
	color: rgb(var(--primary-color)); /* Blue brand color */
	margin-bottom: 1.5rem;
}

h1 {
	font-size: 2.25rem;
	font-weight: 700;
	color: #111827;
	margin: 0rem 0;
}

p {
	font-size: 1.125rem;
	color: #4b5563;
	line-height: 1.6;
	margin-bottom: 0;
}

/* Subtle animation for the gear icon */
@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}
.spin-icon {
	animation: spin 8s linear infinite;
}



/* ========= UNDER DEVELOPMENT CARD STYLES ========= */
.card.under-dev {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.2);
    /* Disable transformation and elevation on hover */
    transition: none;
}

.card.under-dev:hover,
.card.under-dev:focus-visible {
    transform: none !important;
    background: #ffffff !important;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08) !important;
}

/* Disable hover effects on child elements */
.card.under-dev:hover h2,
.card.under-dev:hover p {
    color: inherit !important;
}

.card.under-dev:hover::before {
    opacity: 1 !important;
}

.card.under-dev:hover::after {
    background: radial-gradient(circle, rgba(var(--app-rgb), 0.08), transparent 70%) !important;
}

.card.under-dev:hover .icon-wrapper {
    background: rgba(var(--app-rgb), 0.12) !important;
    color: rgb(var(--app-rgb)) !important;
    transform: none !important;
}

.card.under-dev:hover .chip {
    background: rgba(var(--app-rgb), 0.1) !important;
    color: rgb(var(--app-rgb)) !important;
}

/* Dev status badge */
.dev-badge {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
}

.dev-badge span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
