/* ===== Availability Dashboard Styles ===== */

/* Navigation bar */
.dashboard-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 15px;
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  border-radius: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}
.dashboard-nav input{
  width: auto;
}
.dashboard-nav .form-item {
  margin: 0;
}

.dashboard-nav label {
  display: none;
}

.dashboard-date-input {
  font-size: 16px;
  padding: 10px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a237e;
  font-weight: 600;
  text-align: center;
  min-width: 180px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard-date-input:focus {
  outline: none;
  border-color: #ffd54f;
  box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.4);
}

.btn-nav {
  padding: 10px 20px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  white-space: nowrap;
}

.btn-prev {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.btn-prev:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: translateX(-2px);
}

.btn-next {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.btn-next:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: translateX(2px);
}

.btn-consult {
  background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%) !important;
  color: #1a237e !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(255, 179, 0, 0.4);
}

.btn-consult:hover {
  background: linear-gradient(135deg, #ffe082 0%, #ffc107 100%) !important;
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.6);
  transform: translateY(-1px);
}

/* Date header */
.dashboard-date-header {
  text-align: center;
  margin-bottom: 24px;
}

.dashboard-date-header h2 {
  color: #1a237e;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  padding: 12px 0;
  border-bottom: 3px solid #e8eaf6;
}

/* 3-column layout */
.dashboard-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

/* Column */
.dashboard-column {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #e8eaf6;
}

.column-header {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 2px solid #e8eaf6;
}

.column-ida .column-header {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.column-pasadia .column-header {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.column-vuelta .column-header {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.column-header h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: #263238;
}

.column-subtitle {
  margin: 0;
  font-size: 12px;
  color: #607d8b;
}

/* Product cards */
.product-card {
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.product-card:last-child {
  border-bottom: none;
}

.product-card:hover {
  background: #fafbff;
}

.product-name {
  font-weight: 700;
  font-size: 14px;
  color: #1a237e;
  margin-bottom: 6px;
}

.product-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.reserved-count {
  color: #546e7a;
  font-weight: 500;
}

.available-count {
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.status-ok {
  color: #2e7d32;
  background: #e8f5e9;
}

.status-warning {
  color: #e65100;
  background: #fff3e0;
}

.status-critical {
  color: #c62828;
  background: #ffebee;
}

/* Progress bar */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #e8eaf6;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease, background 0.3s ease;
  min-width: 0;
}

.bar-ok {
  background: linear-gradient(90deg, #43a047, #66bb6a);
}

.bar-warning {
  background: linear-gradient(90deg, #ef6c00, #fb8c00);
}

.bar-critical {
  background: linear-gradient(90deg, #c62828, #ef5350);
}

/* No products message */
.no-products {
  padding: 30px 20px;
  text-align: center;
  color: #90a4ae;
  font-style: italic;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .dashboard-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-nav {
    flex-direction: column;
    gap: 8px;
  }

  .btn-nav {
    width: 100%;
    text-align: center;
  }

  .dashboard-date-input {
    width: 100%;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .dashboard-columns {
    grid-template-columns: 1fr 1fr;
  }
}
