/**
 * Module hub dashboards — same tile rhythm as portal / social-media dashboard.
 */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-top: 20px;
}

.dashboard-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
  flex-direction: column;
  color: inherit;
}

.dashboard-link:hover {
  transform: translateY(-5px);
}

.dashboard-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.menu-icon-button {
  width: 80px;
  max-width: 100%;
  height: auto;
}

.menu-icon-button.ism-tv-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-link:hover .menu-icon-button.ism-tv-logo:not(.ism-tv-logo-flip-face) {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.menu-fa-icon {
  font-size: 60px;
  line-height: 1;
  display: inline-block;
}

.menu-label {
  margin-top: 8px;
  font-size: 13px;
  color: #333;
  text-align: center;
}

.meeting { color: #4caf50; }
.events { color: #ff9800; }
.reports { color: #2196f3; }
.finance { color: #9c27b0; }
.committee { color: #009688; }
.notification { color: #f44336; }
.circular { color: #3f51b5; }
.urm-portal { color: #3949ab; }
.social-media { color: #e91e63; }

.dashboard-link--module-blocked {
  opacity: 0.72;
  cursor: pointer;
}

.dashboard-link--module-blocked:hover {
  transform: translateY(-3px);
}

.module-hub-intro {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: #555;
}

.module-hub-section-title {
  margin: 28px 0 10px 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #111827;
}

.dashboard-container > .module-hub-section-title:first-of-type {
  margin-top: 12px;
}

.module-hub-top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  margin: 0 0 0.35rem;
}

.module-hub-portal-home {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: auto;
  max-width: none;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
}

.module-hub-portal-home i {
  font-size: 0.95rem;
  color: #2196f3;
}

.module-hub-portal-home:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.module-hub-page-heading {
  margin: 8px 0 4px 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.module-hub-page-heading-icon {
  font-size: 1.75rem;
  color: #0d9488;
  line-height: 1;
}

@media (max-width: 600px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
  }

  .dashboard-link {
    padding: 8px;
  }

  .menu-icon-button {
    width: 50px;
  }

  .menu-fa-icon {
    font-size: 40px;
  }

  .menu-label {
    font-size: 11px;
    margin-top: 4px;
  }

  .container {
    padding: 10px;
  }
}

@media (min-width: 1024px) {
  .menu-icon-button {
    width: 100px;
  }

  .menu-fa-icon {
    font-size: 75px;
  }
}


.dashboard-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 49, 79, 0.25);
  z-index: 0;
}

.dashboard-menu-backdrop.hidden {
  display: none;
}

.dashboard-menu-trigger {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #bdd3f1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.12);
  cursor: pointer;
}

.dashboard-menu-trigger:focus-visible {
  outline: 2px solid #1455cc;
  outline-offset: 2px;
}

.dashboard-menu-bars {
  display: block;
  width: 22px;
  height: 2px;
  background: #12314f;
  border-radius: 1px;
  position: relative;
}

.dashboard-menu-bars::before,
.dashboard-menu-bars::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #12314f;
  border-radius: 1px;
  position: absolute;
  left: 0;
}

.dashboard-menu-bars::before {
  top: -7px;
}

.dashboard-menu-bars::after {
  top: 7px;
}

.dashboard-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2;
  min-width: 200px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #d7e6ff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.18);
}

.dashboard-menu-panel.hidden {
  display: none;
}

a.dashboard-menu-item {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.dashboard-menu-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #12314f;
  cursor: pointer;
  border-radius: 0;
  position: relative;
  z-index: 1;
}

.dashboard-menu-item:hover {
  background: #eef5ff;
}

.dashboard-menu-item--logout-secondary {
  color: #1d4ed8;
}

.dashboard-menu-item--logout-secondary:hover {
  background: #eff6ff;
  color: #1e3a8a;
}

.dashboard-menu-logout-form {
  margin: 0;
  padding: 0;
  display: block;
}

.dashboard-menu-version {
  display: block;
  margin: 0;
  padding: 8px 16px 10px;
  border-top: 1px solid #e8f0fe;
  text-align: center;
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #94a3b8;
  cursor: default;
  user-select: none;
  line-height: 1.3;
}

.dashboard-change-pwd-modal {
  text-align: left;
}

.dashboard-change-pwd-modal h3 {
  margin: 0 0 8px 0;
  text-align: center;
}

.dashboard-change-pwd-hint {
  margin: 0 0 16px 0;
  font-size: 0.9rem;
  color: #315d98;
  text-align: center;
}

.dashboard-change-pwd-field {
  margin-bottom: 12px;
}

.dashboard-change-pwd-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.dashboard-change-pwd-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #bdd3f1;
  border-radius: 10px;
}

.dashboard-change-pwd-field input.dashboard-change-pwd-input--invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.dashboard-change-pwd-field-msg {
  margin: 8px 0 0 0;
  min-height: 0;
  font-size: 0.875rem;
  color: #b91c1c;
  line-height: 1.35;
}

.dashboard-change-pwd-field-msg--prominent {
  margin-top: 10px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #991b1b;
  font-weight: 700;
  font-size: 0.95rem;
}

.dashboard-change-pwd-field-msg:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

/* Social media brand icons (dashboard-social-media only) */
.gi-logos { color: #d97706; }

.sm-fb { color: #1877f2; }
.sm-ig { color: #e4405f; }
.sm-wa { color: #25d366; }
.sm-yt { color: #ff0000; }
.sm-li { color: #0a66c2; }
