/* Common Component Styles - Used across multiple components */

/* Card Components */
.info-card, .map-card, .filter-card, .availability-table-container {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.card-title, .section-title, .filter-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.4rem;
  border-bottom: 2px solid #f5f5f5;
  padding-bottom: 10px;
}

.section-title {
  font-size: 1.6rem;
}

.filter-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Loading Spinner */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #3498db;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom Checkboxes */
.custom-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.custom-checkbox-option {
  position: relative;
}

.custom-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox-label {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 30px;
  background-color: #f5f5f5;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.custom-checkbox:checked + .custom-checkbox-label {
  background-color: #3498db;
  color: white;
  box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.custom-checkbox:hover + .custom-checkbox-label {
  background-color: #e0e0e0;
}

.custom-checkbox:checked:hover + .custom-checkbox-label {
  background-color: #2980b9;
}

/* Enhanced Tables */
.enhanced-table {
  width: 100%;
  border-collapse: collapse;
}

.enhanced-table th, .enhanced-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.enhanced-table thead th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #555;
  text-align: left;
}

/* Month Headers */
.month-header {
  background-color: #f0f4f8;
  color: #2c3e50;
  text-align: left;
  font-weight: 600;
  position: relative;
  transition: background-color 0.2s;
}

.month-header:hover {
  background-color: #e4ebf5;
}

/* Availability colors - for data visualization */
.availability-high {
  background-color: rgba(46, 204, 113, 0.1);
  color: #27ae60;
}

.availability-medium {
  background-color: rgba(255, 159, 64, 0.1);
  color: #f39c12;
}

.availability-low {
  background-color: rgba(231, 76, 60, 0.1);
  color: #c0392b;
}

/* Buttons */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #2ecc71;
  color: white;
}

.btn-primary:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

/* Layouts */
.container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .custom-checkbox-group {
    justify-content: center;
  }
}