/* SEDAPAR - CONSORCIO INNOVA: Sistema de Inspección Posterior */

:root {
  --sedapar-primary: #0a3d62;
  --sedapar-accent: #0284c7;
  --sedapar-light: #f0f7fc;
  --sedapar-border: #e2e8f0;
  --sedapar-text: #1e293b;
  --innova-blue: #0b4f8a;
  --status-pending: #f59e0b;
  --status-inspected: #0284c7;
  --status-printed: #10b981;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8fafc;
  color: var(--sedapar-text);
  padding-bottom: 70px; /* Space for mobile bottom bar */
}

/* Navbar */
.sedapar-navbar {
  background: linear-gradient(135deg, #0a3d62 0%, #0369a1 100%);
  box-shadow: 0 2px 10px rgba(10, 61, 98, 0.15);
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #bae6fd;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Cards & Containers */
.sedapar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sedapar-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-header-sedapar {
  background: #f1f8fd;
  border-bottom: 1px solid #e1effa;
  color: #0369a1;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem;
  border-radius: 11px 11px 0 0 !important;
}

/* Stat Cards */
.stat-card {
  border-radius: 12px;
  padding: 1.25rem 1rem;
  position: relative;
  overflow: hidden;
}

.stat-card .stat-icon {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 2.2rem;
  opacity: 0.2;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  opacity: 0.9;
}

/* Status Badges */
.badge-status {
  padding: 0.4em 0.75em;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  border-radius: 20px;
}

.badge-pendiente {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-inspeccionada {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-impresa {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Touch Friendly Chips Selectors */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border: 2px solid #cbd5e1;
  background-color: #ffffff;
  color: #334155;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  min-height: 44px; /* Apple minimum touch target */
}

.chip-label:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

.chip-input {
  display: none;
}

.chip-input:checked + .chip-label {
  background-color: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
  font-weight: 700;
  box-shadow: 0 0 0 1px #0284c7;
}

.chip-label.chip-danger.chip-input:checked + .chip-label,
.chip-input:checked + .chip-label.chip-danger {
  background-color: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
}

/* Locked Base Data Card */
.base-data-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.base-data-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}

.base-data-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

/* Big Mobile Save Button */
.btn-save-mobile {
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bottom Mobile Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1030;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
}

.mobile-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.mobile-nav-item.active {
  color: #0284c7;
  font-weight: 700;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 20px;
  }
  .mobile-bottom-nav {
    display: none;
  }
}

/* Photo Preview Box */
.photo-preview-container {
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  background-color: #f8fafc;
  position: relative;
}

.photo-preview-img {
  max-height: 260px;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

/* Progress bar pulse */
.progress-bar-sedapar {
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
}
