/* ==============================================================================
   HotspotMan V2 — Production Compiled Tailwind & Custom UI System
   Self-hosted, Zero External CDN dependencies, Full Dark Theme Support
   ============================================================================== */

*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #334155;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: #0f172a;
  color: #f8fafc;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #f8fafc;
  margin: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875em;
  background: #0f172a;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  border: 1px solid #334155;
  color: #38bdf8;
}

/* Navigation & Header */
.nav-item {
  display: inline-block;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  margin-right: 0.5rem;
}
.nav-item:hover {
  background-color: #1e293b;
  color: #f8fafc;
}
.nav-item.active {
  background-color: #1e293b;
  color: #38bdf8;
  font-weight: 600;
}

/* Cards & Layout */
.card {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table th {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #334155;
}
.table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #334155;
  font-size: 0.875rem;
  color: #cbd5e1;
}
.table tr:hover td {
  background-color: rgba(51, 65, 85, 0.3);
}

/* Form Inputs & Controls */
.input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  background-color: #0f172a;
  border: 1px solid #475569;
  color: #f8fafc;
  font-size: 0.875rem;
  box-sizing: border-box;
  transition: border-color 0.15s ease-in-out;
}
.input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}
.btn-primary {
  background-color: #059669;
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #047857;
}
.btn-blue {
  background-color: #2563eb;
  color: #ffffff;
}
.btn-blue:hover {
  background-color: #1d4ed8;
}
.btn-danger {
  background-color: #dc2626;
  color: #ffffff;
}
.btn-danger:hover {
  background-color: #b91c1c;
}
.btn-secondary {
  background-color: #475569;
  color: #ffffff;
}
.btn-secondary:hover {
  background-color: #334155;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-green { background: #064e3b; color: #34d399; }
.badge-yellow { background: #713f12; color: #fde047; }
.badge-red { background: #7f1d1d; color: #fca5a5; }
.badge-blue { background: #1e3a8a; color: #60a5fa; }
.badge-purple { background: #581c87; color: #c084fc; }

/* Progress Bar */
.progress-bar {
  height: 0.75rem;
  border-radius: 9999px;
  background-color: #334155;
  overflow: hidden;
  margin-top: 0.5rem;
}
.progress-fill {
  height: 100%;
  background-color: #10b981;
  border-radius: 9999px;
  transition: width 0.3s ease-in-out;
}

/* Live Session Pulse Indicator */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.1); }
}
