/* Tebita IT Support - Custom Styles (v3+v4 with approval & methods) */

:root {
  --primary-color: #0d6efd;
  --accent-color: #20c997;
  --bg-soft: #f4f6fb;
  --card-radius: 1rem;
  --shadow-soft: 0 15px 30px rgba(15, 23, 42, 0.10);
}

body {
  background: radial-gradient(circle at top left, #e0f2fe 0, #f8fafc 45%, #eef2ff 100%);
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  max-width: 1250px;
  margin: 1.5rem auto;
  padding-inline: 0.75rem;
}

.app-header-card {
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #e5e7eb;
  overflow: hidden;
}

.app-header-card .title-main {
  font-size: 1.6rem;
  font-weight: 700;
}

.app-header-card .title-sub {
  font-size: 0.95rem;
  opacity: 0.9;
}

.logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  background: rgba(15, 23, 42, 0.6);
}

.badge-soft {
  background: rgba(15, 23, 42, 0.45);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-card {
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  border: none;
}

.metric-card h3 {
  font-weight: 700;
}

.metric-trend {
  font-size: 0.78rem;
}

/* Form card */

.form-card {
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
  border: none;
}

.form-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.form-label {
  font-size: 0.85rem;
  color: #374151;
}

.form-control,
.form-select {
  border-radius: 0.7rem;
  border-color: #e5e7eb;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.12rem rgba(16, 185, 129, 0.25);
}

/* Ticket table */

.table-card {
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
  border: none;
}

.table thead th {
  border-bottom-width: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.status-pill {
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.status-new {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-inprogress {
  background: #fef3c7;
  color: #b45309;
}

.status-resolved {
  background: #dcfce7;
  color: #15803d;
}

.status-closed {
  background: #e5e7eb;
  color: #374151;
}

/* Approval badge */

.approval-pill {
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
}

.approval-pending {
  background: #e0f2fe;
  color: #1d4ed8;
}
.approval-approved {
  background: #dcfce7;
  color: #15803d;
}
.approval-rejected {
  background: #fee2e2;
  color: #b91c1c;
}

/* Buttons */

.btn-primary {
  border-radius: 999px;
  padding-inline: 1.6rem;
  font-weight: 600;
}

.btn-outline-primary,
.btn-outline-secondary {
  border-radius: 999px;
  font-size: 0.8rem;
}

/* Ticket detail page */

.ticket-meta label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.ticket-meta div.value {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Filters on report page */

.filter-chip {
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  background: #eef2ff;
  font-size: 0.75rem;
}

.chart-card {
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
  border: none;
}

/* Small utilities */

.text-muted-soft {
  color: #9ca3af;
}

@media (max-width: 768px) {
  .app-shell {
    margin: 0.75rem auto 1.5rem;
  }

  .app-header-card {
    border-radius: 1.25rem;
  }

  .app-header-card .title-main {
    font-size: 1.3rem;
  }

  .app-header-card .title-sub {
    font-size: 0.9rem;
  }
}
