.swap-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.swap-modal-container {
  background: white;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  font-family: 'Poppins', sans-serif;
}

.swap-modal-header {
  padding: 30px 30px 20px 30px;
  border-bottom: 1px solid #e9ecef;
  position: relative;
}

.swap-modal-header h2 {
  margin: 0 0 8px 0;
  color: #000;
  font-size: 24px;
  font-weight: 600;
}

.swap-modal-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.swap-modal-content {
  padding: 30px;
}

.date-selector {
  margin-bottom: 30px;
}

.date-selector h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.date-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 12px;
  justify-content: center;
}

.date-nav-btn {
  background: #000;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.date-nav-btn:hover:not(:disabled) {
  background: #333;
}

.date-nav-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.selected-date {
  color: #000;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  text-align: center;
  justify-content: center;
}

.today-badge {
  background: #4CAF50;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.table-selector h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.loading, .no-tables {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 16px;
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.swap-table-card {
  border: 2px solid #e9ecef;
  background: #fafafa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.swap-table-card:hover {
  border-color: #7A7A7A;
  background: #f5f5f5;
}

.swap-table-card.selected {
  border-color: #000;
  background: #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.swap-table-card h4 {
  margin: 0 0 8px 0;
  color: #000;
  font-size: 18px;
  font-weight: 600;
}

.swap-table-card .table-info {
  color: #666;
  font-size: 14px;
}

.swap-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
}

.cancel-swap-btn, .confirm-swap-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.cancel-swap-btn {
  background: #f5f5f5;
  color: #666;
}

.cancel-swap-btn:hover {
  background: #e9ecef;
  color: #333;
}

.confirm-swap-btn {
  background: #000;
  color: white;
}

.confirm-swap-btn:hover:not(:disabled) {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.confirm-swap-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .swap-modal-container {
    margin: 10px;
    max-height: 95vh;
  }
  
  .swap-modal-header,
  .swap-modal-content {
    padding: 20px;
  }
  
  .date-controls {
    flex-direction: column;
    gap: 15px;
  }
  
  .tables-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .swap-actions {
    flex-direction: column;
  }
}
