/* MaintainIT prototype shared styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
  --brand-dark: #0f172a;
  --brand-primary: #2563eb;
  --brand-accent: #14b8a6;
  --muted: #6b7280;
  --surface: #f8fafc;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  background: var(--surface);
  color: #0f172a;
}

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.phone-frame {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.app-bar {
  background: linear-gradient(120deg, var(--brand-primary), #1d4ed8);
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-bar .title {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
}

.status-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.status-new { background: #e0f2fe; color: #075985; }
.status-in-progress { background: #fef9c3; color: #854d0e; }
.status-on-hold { background: #f3e8ff; color: #7c3aed; }
.status-completed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.priority-chip {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.priority-low { background: #ecfeff; color: #0ea5e9; }
.priority-medium { background: #eff6ff; color: #1d4ed8; }
.priority-high { background: #fff7ed; color: #ea580c; }
.priority-critical { background: #fef2f2; color: #dc2626; }

.card-ghost {
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.floating-action {
  position: sticky;
  bottom: 1rem;
  width: 100%;
  z-index: 20;
}

.thumb-row img {
  height: 70px;
  width: 70px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 0.5rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.section-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.inline-field-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-right: 0.35rem;
}

.table-fit {
  white-space: nowrap;
}

.filter-bar {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-link.active {
  font-weight: 600;
}

.hero-chip {
  background: #e0f2fe;
  color: #075985;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.badge-dot::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
}

.table thead th {
  color: #475569;
  font-weight: 600;
}

.table-hover tbody tr:hover {
  background-color: #f8fafc;
}

.side-pane {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding: 1rem;
}

.page-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-subtitle {
  color: #64748b;
}

.gradient-bg {
  background: linear-gradient(120deg, #0f172a, #1f2937);
  color: #fff;
}

.sticky-top-shadow {
  position: sticky;
  top: 0;
  z-index: 15;
  background: #fff;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.toolbar-gap > * + * {
  margin-left: 0.35rem;
}

.muted {
  color: var(--muted);
}
