/* ==========================================================================
   SIMRS BUENTAKA - MODERN LANDING PAGE CUSTOM STYLES
   Style Concept: Microsoft Fluent Design, Material Design 3, Glassmorphism
   ========================================================================== */

:root {
  --primary: #0F2747;
  --primary-dark: #07162B;
  --secondary: #1D4ED8;
  --accent: #3B82F6;
  --accent-light: #EFF6FF;
  --success: #10B981;
  --bg-color: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   1. TOP NAVBAR (HEADER)
   -------------------------------------------------------------------------- */
.top-navbar {
  height: 65px;
  background-color: var(--card-bg);
  box-shadow: 0 2px 12px rgba(15, 39, 71, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.top-navbar .navbar-brand-logo {
  max-height: 38px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.top-navbar .navbar-brand-logo:hover {
  opacity: 1;
}

.top-navbar .widget-time-box {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-navbar .widget-time-box i {
  color: var(--secondary);
  font-size: 1.05rem;
}

.top-navbar .user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  background: var(--accent-light);
  border: 1px solid #DBEAFE;
  border-radius: 20px;
}

.top-navbar .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.top-navbar .user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
}

.top-navbar .user-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-logout-modern {
  background: #FEF2F2;
  color: #EF4444;
  border: 1px solid #FEE2E2;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-logout-modern:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* --------------------------------------------------------------------------
   2. HERO BANNER SECTION (ULTRA COMPACT STANDALONE LOGO BANNER)
   -------------------------------------------------------------------------- */
#hero {
  min-height: 160px;
  max-height: 190px;
  background: linear-gradient(135deg, #0F2747 0%, #183B6B 100%);
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Abstract Background Grid Pattern Overlay */
#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(29, 78, 216, 0.2) 0%, transparent 40%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-logo-box {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 10px 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  max-height: 110px;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

/* --------------------------------------------------------------------------
   3. QUICK ACCESS MENU CARDS
   -------------------------------------------------------------------------- */
#clients {
  padding: 24px 0 40px 0;
  background-color: var(--bg-color);
}

.section-title-wrapper {
  margin-bottom: 30px;
}

.section-title-main {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-main i {
  color: var(--accent);
  font-size: 1.5rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

/* Custom Grid Columns for App Launcher (Desktop Tight Spacing, Mobile 4 per row) */
.menu-grid-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -6px;
  margin-left: -6px;
  justify-content: center;
}

.menu-card-col {
  padding-right: 6px;
  padding-left: 6px;
  margin-bottom: 18px;
  /* Default Mobile: 4 app icons per row */
  flex: 0 0 25%;
  max-width: 25%;
}

@media (min-width: 768px) {
  .menu-card-col {
    flex: 0 0 20%;
    max-width: 20%; /* 5 icons per row on tablet */
  }
}

@media (min-width: 1200px) {
  .menu-card-col {
    flex: 0 0 12.5%;
    max-width: 12.5%; /* 8 icons per row on desktop for super compact layout, or 16.66% if 6 per row */
  }
}

@media (min-width: 1200px) and (max-width: 1440px) {
  .menu-card-col {
    flex: 0 0 16.666667%;
    max-width: 16.666667%; /* 6 icons per row on standard desktop */
  }
}

/* Apple / Android Clean Launcher Style (Tanpa Outer Card Box) */
.menu-card-link {
  text-decoration: none !important;
  display: block;
  height: 100%;
  color: inherit;
}

.menu-card {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 6px 2px;
  height: 100%;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: visible;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.menu-card::before {
  display: none;
}

.menu-card-icon-wrapper {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 6px 18px rgba(15, 39, 71, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  padding: 6px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.menu-card-icon {
  width: 68px;
  height: 68px;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(15, 39, 71, 0.14));
  transition: transform 0.3s ease;
}

/* Mobile Responsiveness for App Icon Sizes (< 576px) */
@media (max-width: 575px) {
  .menu-card-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 4px;
    padding: 4px;
  }

  .menu-card-icon {
    width: 58px;
    height: 58px;
    max-width: 90%;
    max-height: 90%;
  }

  .menu-card-title {
    font-size: 0.74rem !important;
    line-height: 1.15 !important;
    height: 2.3em !important;
  }
}

.menu-card-body {
  width: 100%;
  margin-bottom: 0;
}

.menu-card-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.5em;
  transition: color 0.2s ease;
}

.menu-card-tag {
  display: none;
}

.menu-card-footer {
  display: none;
}

/* Apple / Android Touch Hover Spring Effects */
.menu-card-link:hover .menu-card {
  transform: translateY(-4px);
}

.menu-card-link:hover .menu-card-icon-wrapper {
  transform: scale(1.08);
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-color: #93C5FD;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.28);
}

.menu-card-link:hover .menu-card-icon {
  transform: scale(1.06);
}

.menu-card-link:hover .menu-card-title {
  color: var(--secondary);
}

/* --------------------------------------------------------------------------
   4. FOOTER
   -------------------------------------------------------------------------- */
#footer {
  background: var(--primary);
  color: #94A3B8;
  padding: 24px 0;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#footer a {
  color: #60A5FA;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

#footer a:hover {
  color: #93C5FD;
  text-decoration: underline;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-weight: 600;
  color: #FFFFFF;
}

.footer-version-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #38BDF8;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 8px;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero-content-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .hero-logo-img {
    max-height: 100px;
  }

  .hero-title-main {
    font-size: 1.4rem;
  }

  .hero-subtitle-hospital {
    font-size: 0.98rem;
  }
  
  .top-navbar .user-role {
    display: none;
  }
}

@media (max-width: 575px) {
  .top-navbar {
    height: 56px;
  }

  .top-navbar .navbar-brand-logo {
    max-height: 30px;
  }

  .top-navbar .widget-time-box {
    padding: 3px 8px;
    font-size: 0.7rem;
    gap: 4px;
    border-radius: 12px;
  }

  .top-navbar .widget-time-box i {
    font-size: 0.8rem;
  }

  #hero {
    min-height: auto;
    padding: 24px 0;
  }

  .hero-title-main {
    font-size: 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}
