/* Hub-specific CSS */

/* Page header */
.hub-page-header {
  margin-bottom: 25px;
}

.hub-page-header h5 {
  font-size: 17px;
  font-weight: 700;
  color: #3c3c3c;
  margin-bottom: 4px;
}

.hub-page-header p {
  font-size: 14px;
  color: #64748B;
  font-weight: 400;
  margin: 0;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}

.service-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #3c3c3c;
  flex: 1 1 auto;
}

.service-card-domain {
  font-size: 14px;
  color: #64748B;
  white-space: nowrap;
}

/* When screen smaller — move all domains to 2nd row */
@media (max-width: 1400px) {
  .service-card-domain {
    flex: 0 0 100%;
    margin-top: 2px;
  }
}

@media (max-width: 1199px) {
  .service-card-domain {
    flex: 0 0 100%;
    margin-top: 2px;
  }
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.service-card h5 {
  font-size: 16px;
  color: #3c3c3c;
}

.service-card .text-muted {
  font-size: 14px;
  color: #64748B !important;
}

.service-card .mb-4 {
  margin-bottom: 12px !important;
}

.service-card .stat-box {
  height: 100px;
  padding: 15px 20px 20px 20px;
  gap: 3px;
}


.service-card .stat-title {
  font-size: 14px;
  font-weight: 500;
}

.service-card .stat-value {
  font-size: 29px;
  font-weight: 700;
}

.service-card .open-btn {
  padding: 10px 14px !important;
  font-size: 13px !important;
  background: #7dbacb !important;
}

.service-card .open-btn:hover {
  background: #6bc0d0 !important;
}



/* ============================================================
   Login page — Option A: Minimal Clean
   ============================================================ */
html.hub-login-page,
html.hub-login-page body {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  height: 100%;
  background: #F0F4F8 !important;
}

.hub-login-wrapper {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F0F4F8;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
}

.hub-login-card {
  width: 100%;
  max-width: 540px;
  padding: 0 20px;
}

.hub-login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.hub-login-logo img {
  height: 36px;
}

.hub-login-card .card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.hub-login-card .card-body {
  padding: 40px 38px 36px;
}

.hub-login-header {
  text-align: center;
  margin-bottom: 30px;
}

.hub-login-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 6px;
}

.hub-login-header p {
  font-size: 14px;
  color: #64748B;
  margin: 0;
}

/* Form fields */
.hub-field-group {
  margin-bottom: 20px;
}

.hub-field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 7px;
}

.hub-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.hub-label-row label {
  margin-bottom: 0 !important;
}

.hub-forgot-link {
  font-size: 13px;
  color: #86d3e3;
  text-decoration: none;
  font-weight: 500;
}

.hub-forgot-link:hover {
  color: #6bc0d0;
  text-decoration: underline;
}

.hub-field-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: #1E293B;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hub-field-group input::placeholder {
  color: #94A3B8;
}

.hub-field-group input:focus {
  border-color: #86d3e3;
  box-shadow: 0 0 0 3px rgba(134, 211, 227, 0.12);
}

/* Checkbox */
.hub-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hub-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #86d3e3;
  cursor: pointer;
}

.hub-check-row label {
  font-size: 13px;
  color: #64748B;
  font-weight: 400;
  cursor: pointer;
}

/* Button */
.hub-login-btn {
  width: 100%;
  padding: 12px;
  background: #86d3e3;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.hub-login-btn:hover {
  background: #6bc0d0;
  color: #fff;
}

/* Footer */
.hub-login-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 12px;
  color: #94A3B8;
}

@media (max-width: 520px) {
  .hub-login-card .card-body {
    padding: 28px 20px 24px;
  }
}

/* ============================================================
   Hub-specific responsive refinements (tablet & mobile)
   Shared layout/component responsive rules live in style.css.
   Only hub-specific selectors remain here.
   ============================================================ */

/* Tablet (≤ 1199px) */
@media (max-width: 1199.98px) {
  .service-card .stat-value {
    font-size: 26px;
  }
}

/* Tablet (≤ 991.98px) */
@media (max-width: 991.98px) {
  .service-card {
    padding: 18px;
    margin-bottom: 18px;
  }

  .service-card-header {
    gap: 8px;
    flex-wrap: wrap;
  }

  .service-card-title {
    font-size: 15px;
  }

  .service-card-domain {
    font-size: 13px;
    word-break: break-all;
  }

  .service-card .stat-value {
    font-size: 24px;
  }

  .service-card .stat-box {
    height: auto;
    min-height: 90px;
    padding: 14px 16px;
  }

  /* Companies toolbar: search expands to fill, filter stays compact */
  #companiesTableWrapper .d-flex.justify-content-between>div:first-child {
    flex: 1 1 240px;
  }

  #companiesTableWrapper #companiesSearch {
    width: 100%;
  }
}

/* Small tablet / large phone (≤ 767.98px) */
@media (max-width: 767.98px) {
  .service-card {
    padding: 16px;
  }

  .service-card-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 4px;
  }

  .service-card .stat-box {
    padding: 12px 14px;
    min-height: 84px;
  }

  .service-card .stat-title {
    font-size: 13px;
  }

  .service-card .stat-value {
    font-size: 22px;
  }

  .service-card .open-btn {
    padding: 9px 12px !important;
    font-size: 12px !important;
  }

  /* Hub-specific pagination container */
  .white-card.fill-viewport>#companiesPaginationContainer {
    margin-top: 16px;
  }

  /* Companies toolbar stacks */
  #companiesTableWrapper .d-flex.justify-content-between {
    flex-direction: column;
    align-items: stretch !important;
  }

  #companiesTableWrapper .d-flex.justify-content-between>div:first-child {
    flex: 0 0 auto;
  }

  #companiesTableWrapper .dropdown {
    align-self: flex-start;
    flex: 0 0 auto;
  }

  /* Filter popover fits phone screens */
  #companiesTableWrapper .filter-popover {
    min-width: 0;
    width: calc(100vw - 40px);
    max-width: 320px;
  }
}

/* Phone (≤ 575.98px) */
@media (max-width: 575.98px) {
  .service-card {
    padding: 14px;
  }

  .service-card .row.g-3 {
    --bs-gutter-x: 0.75rem;
  }

  .service-card .stat-value {
    font-size: 20px;
  }

  .service-card .stat-title {
    font-size: 12px;
  }

  .service-card .open-btn {
    width: 100%;
    justify-content: center;
  }

  .service-card .d-flex.justify-content-end {
    justify-content: stretch !important;
  }

  /* Login page on very small phones */
  .hub-login-card {
    padding: 0 12px;
  }

  .hub-login-logo {
    margin-bottom: 24px;
  }

  .hub-login-header h2 {
    font-size: 19px;
  }

  .hub-login-header p {
    font-size: 13px;
  }

  .hub-login-card .card-body {
    padding: 22px 16px 20px;
  }

  .hub-field-group input {
    padding: 10px 12px;
    font-size: 13px;
  }

  .hub-login-btn {
    padding: 11px;
    font-size: 14px;
  }
}

/* Very small phones (≤ 375px) */
@media (max-width: 375px) {
  .service-card-title {
    font-size: 14px;
  }

  .service-card-title i {
    font-size: 16px;
  }

  .service-card-domain {
    font-size: 11px;
  }

  .service-card .stat-value {
    font-size: 18px;
  }
}
