/* App-specific overrides layered on top of mysouth.co + Bootstrap 5 */

:root {
  --tt-brand: #79a81b; /* close to mysouth green */
  --tt-brand-dark: #5f8715;
}

body {
  font-family: Poppins, Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* Navbar */
.tt-navbar {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tt-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.tt-logo {
  height: 34px;
  width: auto;
  display: block;
}

.tt-navbar .nav-link {
  font-weight: 600;
}

.tt-navbar .nav-link:hover,
.tt-navbar .nav-link:focus {
  color: var(--tt-brand);
}

/* Buttons */
.btn-primary {
  background-color: var(--tt-brand);
  border-color: var(--tt-brand);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--tt-brand-dark);
  border-color: var(--tt-brand-dark);
}

/* Ops Portal */
.tt-portal-head {
  padding: 0.25rem 0;
}

.tt-portal-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.tt-portal-grid {
  margin-top: clamp(1.75rem, 10vh, 7rem);
}

@media (max-height: 720px) {
  .tt-portal-grid {
    margin-top: 1.5rem;
  }
}

.tt-portal-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.tt-portal-logo__img {
  height: 42px;
  width: auto;
  display: block;
}

.tt-portal-grid .tt-portal-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.70);
  border: 2px solid var(--tt-card-border, rgba(0, 0, 0, 0.14));
  box-shadow: none;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tt-portal-grid .tt-portal-card:hover,
.tt-portal-grid .tt-portal-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: none;
}

.tt-portal-grid .tt-portal-card:focus-visible {
  outline: 3px solid rgba(121, 168, 27, 0.35);
  outline-offset: 3px;
}

.tt-portal-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.0rem 0.75rem;
  background: rgba(245, 246, 248, 0.65);
}

.tt-portal-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.tt-portal-card__mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.65);
  font-size: 18px;
}

.tt-portal-card__name {
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 1.08rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-portal-card__panel {
  color: rgba(255, 255, 255, 0.92);
  padding: 0.95rem 1.0rem 1.0rem;
  background: var(--tt-card-accent, #3b82f6);
  position: relative;
}

.tt-portal-card__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 260px at 15% 0%, rgba(255, 255, 255, 0.18), transparent 58%),
    radial-gradient(700px 260px at 85% 45%, rgba(0, 0, 0, 0.16), transparent 65%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), transparent 60%);
  pointer-events: none;
  opacity: 0.9;
}

.tt-portal-card__chips,
.tt-portal-card__list {
  position: relative;
  z-index: 1;
}

.tt-portal-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.tt-chip {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tt-portal-card__list {
  margin: 0;
  padding-left: 1.05rem;
  opacity: 0.95;
}

.tt-portal-card__list li {
  margin: 0.15rem 0;
}

.tt-portal-card--disabled {
  cursor: not-allowed;
  opacity: 0.72;
  filter: grayscale(0.15);
}

/* Muted palette (matching the attached concept) */
.tt-card--logs { --tt-card-accent: #b59a2a; --tt-card-border: rgba(181, 154, 42, 0.55); }    /* gold */
.tt-card--server { --tt-card-accent: #8cab5d; --tt-card-border: rgba(140, 171, 93, 0.55); }  /* green */
.tt-card--tickets { --tt-card-accent: #2f5a86; --tt-card-border: rgba(47, 90, 134, 0.55); }  /* blue */
.tt-card--staff { --tt-card-accent: #b04f3c; --tt-card-border: rgba(176, 79, 60, 0.55); }    /* red */
.tt-card--clients { --tt-card-accent: #c07a34; --tt-card-border: rgba(192, 122, 52, 0.55); } /* orange */

