/* ===========================================
   Parque Cordillera Dashboard - Styles
   =========================================== */

/* CSS Variables - Brand Colors */
:root {
  --pc-blue: #1E3A8A;
  --pc-blue-light: #5B7FC3;
  --pc-green: #00A651;
  --pc-green-lime: #8CC63F;
  --pc-cyan: #00AEEF;
  --pc-red: #ED1C24;
  --pc-magenta: #92278F;
}

/* ===========================================
   Base Styles
   =========================================== */
body {
  background-color: #f8f9fa;
}

/* ===========================================
   Navbar
   =========================================== */
.navbar-pc {
  background: white;
  border-bottom: 3px solid var(--pc-green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.logo-container {
  height: 45px;
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 100%;
  width: auto;
}

/* ===========================================
   KPI Cards (Top)
   =========================================== */
.kpi-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.kpi-card .kpi-value {
  font-size: 1.8rem;
  font-weight: 700;
}

.kpi-card .card-body {
  padding: 0.75rem !important;
}

.kpi-card h6 {
  font-size: 0.75rem;
  margin-bottom: 0.25rem !important;
}

.kpi-card.entradas {
  background: linear-gradient(135deg, var(--pc-green) 0%, var(--pc-green-lime) 100%);
  color: white;
}

.kpi-card.salidas {
  background: linear-gradient(135deg, var(--pc-blue) 0%, var(--pc-cyan) 100%);
  color: white;
}

.kpi-card.pendientes {
  background: linear-gradient(135deg, var(--pc-red) 0%, #FF6B6B 100%);
  color: white;
}

/* ===========================================
   Tabs Navigation
   =========================================== */
.nav-tabs-custom {
  border-bottom: 2px solid #dee2e6;
}

.nav-tabs-custom .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: #6c757d;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.nav-tabs-custom .nav-link:hover {
  color: var(--pc-blue);
  border-bottom-color: var(--pc-blue-light);
}

.nav-tabs-custom .nav-link.active {
  color: var(--pc-blue);
  border-bottom-color: var(--pc-blue);
  background: transparent;
}

.tab-content-container {
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===========================================
   Filter Section
   =========================================== */
.filter-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-pendiente {
  background-color: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.btn-pendiente.active {
  background-color: var(--pc-red);
  border-color: var(--pc-red);
  color: white;
}

/* ===========================================
   Data Table
   =========================================== */
.table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.table thead th {
  background-color: var(--pc-blue);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
  font-size: 0.85rem;
}

.table tbody td {
  white-space: nowrap;
  font-size: 0.85rem;
  vertical-align: middle;
}

.table-responsive {
  max-height: calc(100vh - 380px);
  overflow: auto;
}

.badge-pendiente {
  background-color: #fff3cd;
  color: #856404;
}

/* ===========================================
   KPIs Tab - Insight Cards
   =========================================== */
.insight-card {
  background: white;
  border-radius: 8px;
  border-left: 4px solid var(--pc-blue);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 0.75rem;
  height: 100%;
}

.insight-card.green { border-left-color: var(--pc-green); }
.insight-card.cyan { border-left-color: var(--pc-cyan); }
.insight-card.red { border-left-color: var(--pc-red); }
.insight-card.lime { border-left-color: var(--pc-green-lime); }
.insight-card.magenta { border-left-color: var(--pc-magenta); }

.insight-card .insight-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pc-blue);
  line-height: 1.2;
}

.insight-card .insight-label {
  font-size: 0.65rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.insight-card .insight-detail {
  font-size: 0.75rem;
  color: #495057;
}

/* ===========================================
   Charts
   =========================================== */
.chart-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1rem;
}

.chart-container h6 {
  color: var(--pc-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===========================================
   Utilities
   =========================================== */
.date-display {
  font-size: 1.5rem;
  font-weight: 600;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.column-toggle {
  max-height: 300px;
  overflow-y: auto;
}

.form-check-input:checked {
  background-color: var(--pc-blue);
  border-color: var(--pc-blue);
}

.btn-outline-primary {
  color: var(--pc-blue);
  border-color: var(--pc-blue);
}

.btn-outline-primary:hover {
  background-color: var(--pc-blue);
  border-color: var(--pc-blue);
}

/* Progress bars for KPIs */
.progress-thin {
  height: 6px;
  border-radius: 3px;
}

.progress-bar-green { background-color: var(--pc-green); }
.progress-bar-blue { background-color: var(--pc-blue); }
.progress-bar-cyan { background-color: var(--pc-cyan); }
.progress-bar-red { background-color: var(--pc-red); }
